Automattic\WooCommerce\Internal\ProductGallery
ProductMediaGallery::is_feature_enabled
Check if product gallery videos are enabled.
Метод класса: ProductMediaGallery{}
Хуков нет.
Возвращает
bool.
Использование
$result = ProductMediaGallery::is_feature_enabled(): bool;
Код ProductMediaGallery::is_feature_enabled() ProductMediaGallery::is feature enabled WC 11.3.0
public static function is_feature_enabled(): bool {
return FeaturesUtil::feature_is_enabled( self::FEATURE_ID );
}