deprecated_function_trigger_error

deprecated_function_trigger_error

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('deprecated_function_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5551
    5547
    5548
    5549
    5550
    5551
    5552
    5553
    5554
    5555
    5556
    5557
    * @since 2.5.0
     *
     * @param bool $trigger Whether to trigger the error for deprecated functions. Default true.
     */
    if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
        if ( function_exists( '__' ) ) {
            if ( $replacement ) {
                $message = sprintf(
                    /* translators: 1: PHP function name, 2: Version number, 3: Alternative function name. */
                    __( 'Function %1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
                    $function_name,