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:
  • 6: .
  • 6: .

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_comment_query_vars_from_block, current_user_can_for_blog, build_query

Top Google Results

User discussions

wpseek mobile