[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

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

Defines 3 functions

  block_core_post_template_uses_featured_image()
  render_block_core_post_template()
  register_block_core_post_template()

Functions
Functions that are not part of a class:

block_core_post_template_uses_featured_image( $inner_blocks )   X-Ref
Determines whether a block list contains a block that uses the featured image.

param: WP_Block_List $inner_blocks Inner block instance.
return: bool Whether the block list contains a block that uses the featured image.

render_block_core_post_template( $attributes, $content, $block )   X-Ref
Renders the `core/post-template` block on the server.

param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.
return: string Returns the output of the query, structured using the layout defined by the block's inner blocks.

register_block_core_post_template()   X-Ref
Registers the `core/post-template` block on the server.




Generated : Thu Mar 28 08:20:01 2024 Cross-referenced by PHPXref