Automattic\WooCommerce\Internal\Admin\Orders

ListTable::should_render_blank_state()privateWC 1.0

Checks whether the blank state should be rendered or not. This depends on whether there are others with a visible status.

Метод класса: ListTable{}

Хуков нет.

Возвращает

true|false. TRUE when the blank state should be rendered, FALSE otherwise.

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

// private - только в коде основоного (родительского) класса
$result = $this->should_render_blank_state(): bool;

Код ListTable::should_render_blank_state() WC 7.3.0

private function should_render_blank_state(): bool {
	return ( ! $this->has_filter ) && 0 === $this->count_orders_by_status( array_keys( $this->get_visible_statuses() ) );
}