build_query_vars_from_query_block
build_query_vars_from_query_block ( $block, $page )
Parameters:- (WP_Block) block Block instance.
- (int) page Current query's page.
Returns:- (array) Returns the constructed WP_Query arguments.
Defined at:Change Log: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Helper function that constructs a WP_Query args array from
a `Query` block properties.It's used in Query Loop, Query Pagination Numbers and Query Pagination Next blocks.