build_comment_query_vars_from_block


build_comment_query_vars_from_block ( $block )

Parameters:
  • (WP_Block) block Block instance.
Returns:
  • (array) Returns the comment query parameters to use with the WP_Comment_Query constructor.
Defined at:

Description

Helper function that constructs a comment query vars array from the passed block properties.It's used with the Comment Query Loop inner blocks.

Related Functions

build_query_vars_from_query_block, current_user_can_for_blog, _build_block_template_result_from_file, _build_block_template_result_from_post, post_comments_form_block_form_defaults

Top Google Results

User discussions

wpseek mobile