_register_theme_block_patterns ( No parameters )

  • private
Defined at:


Register any patterns that the active theme may provide under its `./patterns/` directory. Each pattern is defined as a PHP file and defines its metadata using plugin-style headers. The minimum required definition is:/** * Title: My Pattern * Slug: my-theme/my-pattern * The output of the PHP source corresponds to the content of the pattern, e.g.:

If applicable, this will collect from both parent and child theme. Other settable fields include: - Description - Viewport Width - Categories (comma-separated values) - Keywords (comma-separated values) - Block Types (comma-separated values) - Inserter (yes/no)

Related Functions

_register_remote_theme_patterns, register_block_core_pattern, _load_remote_block_patterns, register_block_core_post_terms, _register_core_block_patterns_and_categories

Top Google Results

User discussions

wpseek mobile