Warning: This method has been deprecated.
WP_Customize_Manager::customize_preview_override_404_status() WordPress Method
The WP_Customize_Manager::customize_preview_override_404_status() method is used to override the default 404 status code for the Customizer preview. This is useful for situations where the preview needs to display a different content than what is normally shown on the front-end of the site. This method accepts a single parameter, which is the status code that should be used for the Customizer preview. The valid status codes are '200', '301', '302', '404', and '500'.
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
File: wp-includes/class-wp-customize-manager.php
public function customize_preview_override_404_status() { _deprecated_function( __METHOD__, '4.7.0' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.7.0 | This method has been deprecated. |
4.0.0 | Introduced. |