WPDev.one
Core Function
View Source on Trac ↗

build_comment_query_vars_from_block()

build_comment_query_vars_from_block( mixed $block )

Helper function that constructs a comment query vars array from the passed

Parameters 1 required

Name / Type Description
$block
WP_Block

Block instance.

Required

Return Value

(array)
array Returns the comment query parameters to use with the WP_Comment_Query constructor.

Function Information

Since Version
6.0.0
Source File
wp-includes/blocks.php
Advertisement