Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::is_feature_enabled │ private │ WC 1.0

Whether the Saved for Later feature is enabled.

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

Хуков нет.

Возвращает

bool.

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

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

Код SavedForLater::is_feature_enabled() WC 11.3.0

private function is_feature_enabled(): bool {
	return wc_get_container()->get( ShopperListsController::class )->is_enabled( 'saved-for-later' );
}