Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_status_filters()protectedWC 1.0

Returns an array of supported statuses and their labels.

{} It's a method of the class: ReviewsListTable{}

No Hooks.

Return

Array.

Usage

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

Code of ReviewsListTable::get_status_filters() WC 7.1.0

protected function get_status_filters() : array {
	return [
		/* translators: %s: Number of reviews. */
		'all'       => _nx_noop(
			'All <span class="count">(%s)</span>',
			'All <span class="count">(%s)</span>',
			'product reviews',
			'woocommerce'
		),
		/* translators: %s: Number of reviews. */
		'moderated' => _nx_noop(
			'Pending <span class="count">(%s)</span>',
			'Pending <span class="count">(%s)</span>',
			'product reviews',
			'woocommerce'
		),
		/* translators: %s: Number of reviews. */
		'approved'  => _nx_noop(
			'Approved <span class="count">(%s)</span>',
			'Approved <span class="count">(%s)</span>',
			'product reviews',
			'woocommerce'
		),
		/* translators: %s: Number of reviews. */
		'spam'      => _nx_noop(
			'Spam <span class="count">(%s)</span>',
			'Spam <span class="count">(%s)</span>',
			'product reviews',
			'woocommerce'
		),
		/* translators: %s: Number of reviews. */
		'trash'     => _nx_noop(
			'Trash <span class="count">(%s)</span>',
			'Trash <span class="count">(%s)</span>',
			'product reviews',
			'woocommerce'
		),
	];
}