theme_block_pattern_files
theme_block_pattern_files
Hook Type: filter
Displaying hooks found in version: wordpress-6.8.2apply_filters('theme_block_pattern_files') is found 1 times:
- /wp-includes/class-wp-theme.php line 1871
* * @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 );