deprecated_class_trigger_error
Filters whether to trigger an error for a deprecated class.
Usage
add_filter( 'deprecated_class_trigger_error', 'wp_kama_deprecated_class_trigger_error_filter' ); /** * Function for `deprecated_class_trigger_error` filter-hook. * * @param bool $trigger Whether to trigger an error for a deprecated class. * * @return bool */ function wp_kama_deprecated_class_trigger_error_filter( $trigger ){ // filter... return $trigger; }
- $trigger(true|false)
- Whether to trigger an error for a deprecated class.
Default: true
Changelog
Since 6.4.0 | Introduced. |
Where the hook is called
deprecated_class_trigger_error
wp-includes/functions.php 5682
if ( WP_DEBUG && apply_filters( 'deprecated_class_trigger_error', true ) ) {