Function Signature:
build_comment_query_vars_from_block
Function Description:
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Example 1: Basic usage of build_comment_query_vars_from_block to retrieve comments for a specific post
$args = build_comment_query_vars_from_block( $block );
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );
// Example 2: Using build_comment_query_vars_from_block to retrieve comments with a specific status
$args = build_comment_query_vars_from_block( $block );
$args['status'] = 'approved'; // Retrieve only approved comments
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );
// Example 3: Utilizing build_comment_query_vars_from_block to retrieve comments with a specific parent comment
$args = build_comment_query_vars_from_block( $block );
$args['parent'] = 25; // Retrieve comments that are replies to comment with ID 25
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );