wp-includes/block-template-utils.php:1464Determines whether a theme directory should be ignored during export.
$pathstringboolfunction wp_is_theme_directory_ignored( $path ) { $directories_to_ignore = array( '.DS_Store', '.svn', '.git', '.hg', '.bzr', 'node_modules', 'vendor' ); return array_any( $directories_to_ignore, fn( $directory ) => str_starts_with( $path, $directory ) );}Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/block-template-utils.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.