deprecated_hook_trigger_error

deprecated_hook_trigger_error

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('deprecated_hook_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5874
    	 *
    	 * @param bool $trigger Whether to trigger deprecated hook errors. Requires
    	 *                      `WP_DEBUG` to be defined true.
    	 */
    	if ( WP_DEBUG && apply_filters( 'deprecated_hook_trigger_error', true ) ) {
    		$message = empty( $message ) ? '' : ' ' . $message;
    
    		if ( $replacement ) {
    			$message = sprintf(
    				/* translators: 1: WordPress hook name, 2: Version number, 3: Alternative hook name. */
    				__( 'Hook %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),