[ 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: 289 lines (10 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.

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

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

return: array Array containing the block variation objects.
param: array $instance_variations The variations for instances.

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 : Thu Apr 18 08:20:02 2024 Cross-referenced by PHPXref