Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_status_arguments()protectedWC 1.0

Gets the status argument based on the current request.

Method of the class: ReviewsListTable{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_status_arguments() : array;

ReviewsListTable::get_status_arguments() code WC 8.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;
}