Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::get_status_arguments
Gets the status argument based on the current request.
Method of the class: ReviewsListTable{}
No Hooks.
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_status_arguments() : array;
ReviewsListTable::get_status_arguments() ReviewsListTable::get status arguments code WC 10.3.3
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;
}