Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::is_feature_enabled │ private │ WC 1.0

Whether the Saved for Later feature is enabled.

Method of the class: SavedForLater{}

No Hooks.

Returns

bool.

Usage

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

SavedForLater::is_feature_enabled() code WC 11.2.1

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