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.

Method of the class: ListTable{}

No Hooks.

Return

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

Usage

// private - for code of main (parent) class only
$result = $this->should_render_blank_state(): bool;

ListTable::should_render_blank_state() code WC 7.7.0

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