Glossary Term
register_block_template()
register_block_template() — Register a block template.
Inputs: $template_name (string): Template name in the form of plugin_uri//template_name. $args (array|string): Field $title (string): Optional. Title of the template as it will be shown in the Site Editor and other UI elements. Field $description (string): Optional. Description of the template as it will be shown in the Site Editor. Field $content (string): Optional. Default content of the template that will be used when the template is rendered or edited in the editor. Field $post_types (string[]): Optional. Array of post types to which the template should be available. Field $plugin (string): Optional. Slug of the plugin that registers the template.
Returns WP_Block_Template|WP_Error: The registered template object on success, WP_Error object on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
