[ 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: 134 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: Mon Sep 20 01:00:04 2021 Cross-referenced by PHPXref 0.7.1