theme_block_pattern_files
theme_block_pattern_files
Appears in: wordpress-6.8, wordpress-6.8.1, wordpress-6.8.2, wordpress-6.8.3, wordpress-6.9, wordpress-6.9.1, wordpress-6.9.2, wordpress-6.9.3, wordpress-6.9.4
Hook Type: filter
Displaying hooks found in version: wordpress-6.9.4apply_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 );