Core Function
View Source on Trac ↗ build_query_vars_from_query_block()
build_query_vars_from_query_block( mixed $block, mixed $page ) Helper function that constructs a WP_Query args array from
Parameters 2 required
| Name / Type | Description |
|---|---|
| $block WP_Block | Block instance. Required |
| $page int | Current query's page. Required |
Return Value
(array)
Returns the constructed WP_Query arguments.
Function Information
Since Version
5.8.0
Source File
wp-includes/blocks.php
Advertisement