[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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

File Size: 149 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  render_block_core_legacy_widget()
  register_block_core_legacy_widget()
  handle_legacy_widget_preview_iframe()

Functions
Functions that are not part of a class:

render_block_core_legacy_widget( $attributes )   X-Ref
Renders the 'core/legacy-widget' block.

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

register_block_core_legacy_widget()   X-Ref
Registers the 'core/legacy-widget' block.


handle_legacy_widget_preview_iframe()   X-Ref
Intercepts any request with legacy-widget-preview in the query param and, if
set, renders a page containing a preview of the requested Legacy Widget
block.




Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1