wpseek.com
A WordPress-centric search engine for devs and theme authors



theme_block_pattern_files › WordPress Filter Hooks

Since6.8.0
Deprecatedn/a
apply_filters( 'theme_block_pattern_files', $files, $dirpath )
Parameters: (2)
  • (array) $files Array of theme files found within `patterns` directory.
    Required: Yes
  • (string) $dirpath Path of theme `patterns` directory being scanned.
    Required: Yes
Defined at:
Codex:

Filters list of block pattern files for a theme.





Source

$files = apply_filters( 'theme_block_pattern_files', $files, $dirpath );