Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_total_comments_arguments
Returns the arguments used to count the total number of comments.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
array.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_total_comments_arguments( $default_query_args ) : array;
- $default_query_args(массив) (обязательный)
- Query args for the main request.
Код ReviewsListTable::get_total_comments_arguments() ReviewsListTable::get total comments arguments WC 11.2.2
protected function get_total_comments_arguments( array $default_query_args ) : array {
return wp_parse_args(
[
'count' => true,
'offset' => 0,
'number' => 0,
],
$default_query_args
);
}