wp_allow_query_attachment_by_filename

wp_allow_query_attachment_by_filename

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_allow_query_attachment_by_filename') is found 1 times:

  • /wp-includes/class-wp-query.php line 1896
    		 * @since 6.0.3
    		 *
    		 * @param bool $allow_query_attachment_by_filename Whether or not to include filenames.
    		 */
    		$this->allow_query_attachment_by_filename = apply_filters( 'wp_allow_query_attachment_by_filename', false );
    		remove_all_filters( 'wp_allow_query_attachment_by_filename' );
    
    		// Parse meta query.
    		$this->meta_query = new WP_Meta_Query();
    		$this->meta_query->parse_query_vars( $q );