WP_Navigation_Block_Renderer::get_template_part_blocks_html
Returns the html for blocks from a template part (without navigation container wrapper).
Метод класса: WP_Navigation_Block_Renderer{}
Хуков нет.
Возвращает
string. Returns the html for the template part blocks.
Использование
$result = WP_Navigation_Block_Renderer::get_template_part_blocks_html( $blocks );
- $blocks(WP_Block_List) (обязательный)
- The list of blocks to render.
Список изменений
| С версии 6.5.0 | Введена. |
Код WP_Navigation_Block_Renderer::get_template_part_blocks_html() WP Navigation Block Renderer::get template part blocks html WP 7.1.4
private static function get_template_part_blocks_html( $blocks ) {
$html = '';
foreach ( $blocks as $block ) {
$html .= $block->render();
}
return $html;
}