deprecated_argument_trigger_error

deprecated_argument_trigger_error

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('deprecated_argument_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 5873
    	 * @since 3.0.0
    	 *
    	 * @param bool $trigger Whether to trigger the error for deprecated arguments. Default true.
    	 */
    	if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( $message ) {
    				$message = sprintf(
    					/* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
    					__( 'Function %1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
    					$function_name,