[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> block.php (summary)

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

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

Defines 1 class

WP_Block_Cloner:: (2 methods):
  clone_instance()
  register_block_core_block()

Defines 2 functions

  render_block_core_block()

Class: WP_Block_Cloner  - X-Ref

clone_instance( $instance )   X-Ref
Static methods of subclasses have access to protected properties
of instances of the parent class.
In this case, this gives us access to `available_context` and `registry`.


register_block_core_block()   X-Ref
Registers the `core/block` block.


Functions
Functions that are not part of a class:

render_block_core_block( $attributes, $content, $block_instance )   X-Ref
Renders the `core/block` block on server.

param: array $attributes The block attributes.
return: string Rendered HTML of the referenced block.



Generated : Thu Oct 30 08:20:06 2025 Cross-referenced by PHPXref