Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_total_comments_arguments()protectedWC 1.0

Returns the arguments used to count the total number of comments.

Method of the class: ReviewsListTable{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_total_comments_arguments( $default_query_args ) : array;
$default_query_args(array) (required)
Query args for the main request.

ReviewsListTable::get_total_comments_arguments() code WC 8.7.0

protected function get_total_comments_arguments( array $default_query_args ) : array {
	return wp_parse_args(
		[
			'count'  => true,
			'offset' => 0,
			'number' => 0,
		],
		$default_query_args
	);
}