On this page
apply_filters( 'theme_scandir_exclusions', string[] $exclusions )
Filters the array of excluded directories and files while scanning theme folder.
Parameters
$exclusionsstring[]-
Array of excluded directories and files.
Source
File: wp-includes/class-wp-theme.php. View all references
$exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_Theme::scandir() wp-includes/class-wp-theme.php | Scans a directory for files of a certain extension. |
Changelog
| Version | Description |
|---|---|
| 4.7.4 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/theme_scandir_exclusions