deprecated_file_trigger_error

deprecated_file_trigger_error

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('deprecated_file_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5787
    	 * @since 2.5.0
    	 *
    	 * @param bool $trigger Whether to trigger the error for deprecated files. Default true.
    	 */
    	if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) {
    		$message = empty( $message ) ? '' : ' ' . $message;
    
    		if ( function_exists( '__' ) ) {
    			if ( $replacement ) {
    				$message = sprintf(
    					/* translators: 1: PHP file name, 2: Version number, 3: Alternative file name. */
    

See this hook used in plugins: