theme_scandir_exclusions WordPress Filter Hook
The theme_scandir_exclusions hook allows you to exclude certain directories from being scanned when WordPress is looking for template files. This can be useful if you have a directory that contains temporary or generated files that you don't want WordPress to try to load as templates.
apply_filters( 'theme_scandir_exclusions', string[] $exclusions ) #
Filters the array of excluded directories and files while scanning theme folder.
Parameters
- $exclusions
(string[])Array of excluded directories and files.
Source
Changelog
Version | Description |
---|---|
4.7.4 | Introduced. |