Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_total_comments_arguments()protectedWC 1.0

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

Метод класса: 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.

Code of ReviewsListTable::get_total_comments_arguments() WC 7.1.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
	);
}