W3cubDocs

/WordPress

WP_Customize_Manager::customize_preview_override_404_status()

Prevents sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead.

Source

public function customize_preview_override_404_status() {
	_deprecated_function( __METHOD__, '4.7.0' );
}

Changelog

Version Description
4.7.0 This method has been deprecated.
4.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_override_404_status