apply_filters( ‘wp_allow_query_attachment_by_filename’, bool $allow_query_attachment_by_filename )

In this article

Filters whether an attachment query should include filenames or not.

Parameters

$allow_query_attachment_by_filenamebool
Whether or not to include filenames.

Source

$this->allow_query_attachment_by_filename = apply_filters( 'wp_allow_query_attachment_by_filename', false );

Changelog

VersionDescription
6.0.3Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.