WP_Customize_Manager::wp_die_handler()
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.
Returns the Ajax wp_die() handler if it's a customized request.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
callable
. Die handler.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->wp_die_handler();
Changelog
Since 3.4.0 | Introduced. |
Deprecated since | 4.7.0 |
WP_Customize_Manager::wp_die_handler() WP Customize Manager::wp die handler code WP 6.5.2
public function wp_die_handler() { _deprecated_function( __METHOD__, '4.7.0' ); if ( $this->doing_ajax() || isset( $_POST['customized'] ) ) { return '_ajax_wp_die_handler'; } return '_default_wp_die_handler'; }