[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

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

Defines 3 functions

  render_block_core_query()
  register_block_core_query()
  block_core_query_disable_enhanced_pagination()

Functions
Functions that are not part of a class:

render_block_core_query( $attributes, $content, $block )   X-Ref
Modifies the static `core/query` block on the server.

param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      The block instance.
return: string Returns the modified output of the query block.

register_block_core_query()   X-Ref
Registers the `core/query` block on the server.


block_core_query_disable_enhanced_pagination( $parsed_block )   X-Ref
Traverse the tree of blocks looking for any plugin block (i.e., a block from
an installed plugin) inside a Query block with the enhanced pagination
enabled. If at least one is found, the enhanced pagination is effectively
disabled to prevent any potential incompatibilities.

param: array $parsed_block The block being rendered.
return: string Returns the parsed block, unmodified.



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref