deprecated_hook_trigger_error filter-hookWP 4.6.0

Filters whether to trigger deprecated hook errors.

Usage

add_filter( 'deprecated_hook_trigger_error', 'wp_kama_deprecated_hook_trigger_error_filter' );

/**
 * Function for `deprecated_hook_trigger_error` filter-hook.
 * 
 * @param bool $trigger Whether to trigger deprecated hook errors. Requires `WP_DEBUG` to be defined true.
 *
 * @return bool
 */
function wp_kama_deprecated_hook_trigger_error_filter( $trigger ){

	// filter...
	return $trigger;
}
$trigger(true|false)
Whether to trigger deprecated hook errors. Requires WP_DEBUG to be defined true.

Changelog

Since 4.6.0 Introduced.

Where the hook is called

_deprecated_hook()
deprecated_hook_trigger_error
wp-includes/functions.php 5742
if ( WP_DEBUG && apply_filters( 'deprecated_hook_trigger_error', true ) ) {

Where the hook is used in WordPress

Usage not found.