doing_it_wrong_trigger_error

doing_it_wrong_trigger_error

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('doing_it_wrong_trigger_error') is found 1 times:

  • /wp-includes/functions.php line 6016
    	 * @param string $function_name The function that was called.
    	 * @param string $message       A message explaining what has been done incorrectly.
    	 * @param string $version       The version of WordPress where the message was added.
    	 */
    	if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true, $function_name, $message, $version ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( $version ) {
    				/* translators: %s: Version number. */
    				$version = sprintf( __( '(This message was added in version %s.)' ), $version );
    			}