Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::get_status_filters()protectedWC 1.0

Returns an array of supported statuses and their labels.

{} Это метод класса: ReviewsListTable{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_status_filters() : array;

Код ReviewsListTable::get_status_filters() WC 6.7.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'
		),
	];
}