[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> widget-group.php (summary)

Server-side rendering of the `core/widget-group` block.

File Size: 93 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  render_block_core_widget_group()
  register_block_core_widget_group()
  note_sidebar_being_rendered()
  discard_sidebar_being_rendered()

Functions
Functions that are not part of a class:

render_block_core_widget_group( $attributes, $content, $block )   X-Ref
Renders the 'core/widget-group' block.

return: string Rendered block.
param: array    $attributes The block attributes.
param: string   $content The block content.
param: WP_Block $block The block.

register_block_core_widget_group()   X-Ref
Registers the 'core/widget-group' block.


note_sidebar_being_rendered( $index )   X-Ref
Make a note of the sidebar being rendered before WordPress starts rendering
it. This lets us get to the current sidebar in
render_block_core_widget_group().

param: int|string $index       Index, name, or ID of the dynamic sidebar.

discard_sidebar_being_rendered()   X-Ref
Clear whatever we set in note_sidebar_being_rendered() after WordPress
finishes rendering a sidebar.




Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref