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' );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.7.0This method has been deprecated.
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More