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:

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.

Related Functions

_build_template_result_from_post, current_user_can_for_blog, build_query

Top Google Results

User discussions

wpseek mobile