_register_theme_block_patterns ( No parameters )

  • private
Defined at:
Change Log:
  • 6: .
  • 6: .


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 - Inserter (yes/no) - Categories (comma-separated values) - Keywords (comma-separated values) - Block Types (comma-separated values) - Post Types (comma-separated values) - Template Types (comma-separated values)

Related Functions

_register_remote_theme_patterns, register_block_core_pattern, _register_core_block_patterns_and_categories, _load_remote_block_patterns, register_block_core_post_terms

Top Google Results

User discussions

wpseek mobile