[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> template-part.php (summary)

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

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

Defines 5 functions

  render_block_core_template_part()
  build_template_part_block_area_variations()
  build_template_part_block_instance_variations()
  build_template_part_block_variations()
  register_block_core_template_part()

Functions
Functions that are not part of a class:

render_block_core_template_part( $attributes )   X-Ref
Renders the `core/template-part` block on the server.

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

build_template_part_block_area_variations()   X-Ref
Returns an array of area variation objects for the template part block.

return: array Array containing the block variation objects.

build_template_part_block_instance_variations()   X-Ref
Returns an array of instance variation objects for the template part block

return: array Array containing the block variation objects.

build_template_part_block_variations()   X-Ref
Returns an array of all template part block variations.

return: array Array containing the block variation objects.

register_block_core_template_part()   X-Ref
Registers the `core/template-part` block on the server.




Generated : Mon Nov 28 08:20:01 2022 Cross-referenced by PHPXref