deprecated_hook_trigger_error
Это хук WordPress - deprecated_hook_trigger_error. Плагин его просто использует.
Filters whether to trigger deprecated hook errors.
Использование
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.
Где вызывается хук
deprecated_hook_trigger_error
contact-form-7/includes/functions.php 559
if ( WP_DEBUG and apply_filters( 'deprecated_hook_trigger_error', true ) ) {