apply_filters( ‘theme_block_pattern_files’, array $files, string $dirpath )

In this article

Filters list of block pattern files for a theme.

Parameters

$filesarray
Array of theme files found within patterns directory.
$dirpathstring
Path of theme patterns directory being scanned.

Source

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

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.