WP_Navigation_Block_Renderer::get_wrapper_markup()
Returns the markup for the navigation block.
Метод класса: WP_Navigation_Block_Renderer{}
Хуков нет.
Возвращает
Строку
. Returns the navigation wrapper markup.
Использование
$result = WP_Navigation_Block_Renderer::get_wrapper_markup( $attributes, $inner_blocks );
- $attributes(массив) (обязательный)
- The block attributes.
- $inner_blocks(WP_Block_List) (обязательный)
- The list of inner blocks.
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Navigation_Block_Renderer::get_wrapper_markup() WP Navigation Block Renderer::get wrapper markup WP 6.7.1
private static function get_wrapper_markup( $attributes, $inner_blocks ) { $inner_blocks_html = static::get_inner_blocks_html( $attributes, $inner_blocks ); if ( static::is_responsive( $attributes ) ) { return static::get_responsive_container_markup( $attributes, $inner_blocks, $inner_blocks_html ); } return $inner_blocks_html; }