Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_status_arguments
Gets the status argument based on the current request.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_status_arguments() : array;
Код ReviewsListTable::get_status_arguments() ReviewsListTable::get status arguments WC 10.7.0
protected function get_status_arguments() : array {
$args = [];
global $comment_status;
if ( ! empty( $comment_status ) && 'all' !== $comment_status && array_key_exists( $comment_status, $this->get_status_filters() ) ) {
$args['status'] = $this->convert_status_to_query_value( $comment_status );
}
return $args;
}