theme_block_pattern_files, $files, $dirpath
theme_block_pattern_files, $files, $dirpath
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('theme_block_pattern_files, $files, $dirpath') is found 1 times:
- /wp-includes/class-wp-theme.php line 1879
* * @param array $files Array of theme files found within `patterns` directory. * @param string $dirpath Path of theme `patterns` directory being scanned. */ $files = apply_filters( 'theme_block_pattern_files', $files, $dirpath ); $dirpath = trailingslashit( $dirpath ); if ( ! $files ) { if ( $can_use_cached ) { $this->set_pattern_cache( $pattern_data );