theme_scandir_exclusions, array( CVS, node_modules, vendor, bower_components
theme_scandir_exclusions, array( CVS, node_modules, vendor, bower_components
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('theme_scandir_exclusions, array( CVS, node_modules, vendor, bower_components') is found 1 times:
- /wp-includes/class-wp-theme.php line 1488
* @since 4.7.4 * * @param string[] $exclusions Array of excluded directories and files. */ $exclusions = (array) apply_filters( 'theme_scandir_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) ); foreach ( $results as $result ) { if ( '.' === $result[0] || in_array( $result, $exclusions, true ) ) { continue; } if ( is_dir( $path . '/' . $result ) ) {