deprecated_hook_trigger_error

deprecated_hook_trigger_error

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('deprecated_hook_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5953
    5949
    5950
    5951
    5952
    5953
    5954
    5955
    5956
    5957
    5958
    5959
    *
     * @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.' ),