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.2

apply_filters('deprecated_file_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5787
    5783
    5784
    5785
    5786
    5787
    5788
    5789
    5790
    5791
    5792
    5793
    * @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: