WP_Customize_Manager::customize_preview_override_404_status()
Deprecated from version 4.7.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Prevents sending a 404 status when returning the response for the customize preview, since it causes the jQuery Ajax to fail. Send 200 instead.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->customize_preview_override_404_status();
Changelog
Since 4.0.0 | Introduced. |
Deprecated since | 4.7.0 |
WP_Customize_Manager::customize_preview_override_404_status() WP Customize Manager::customize preview override 404 status code WP 6.4.3
public function customize_preview_override_404_status() { _deprecated_function( __METHOD__, '4.7.0' ); }