block_template_part() – Print a template-part.
You appear to be a bot. Output may be restricted
Description
Prints a block template part.
Usage
block_template_part( $part );
Parameters
- $part
- ( string ) required – The block template part to print. Use "header" or "footer".
Returns
void
Source
File name: wordpress/wp-includes/block-template-utils.php
Lines:
1 to 7 of 7
function block_template_part( $part ) { $template_part = get_block_template( get_stylesheet() . '//' . $part, 'wp_template_part' ); if ( ! $template_part || empty( $template_part->content ) ) { return; } echo do_blocks( $template_part->content ); }