WP_Customize_Manager::wp_die_handlerpublicWP 3.4.0

Deprecated since 4.7.0. It is no longer supported and may 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.

Returns

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() code WP 6.8.1

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