Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::is_feature_enabled
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() 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' );
}