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.2

apply_filters('wp_allow_query_attachment_by_filename') is found 1 times:

  • /wp-includes/class-wp-query.php line 1896
    1892
    1893
    1894
    1895
    1896
    1897
    1898
    1899
    1900
    1901
    * @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 );