Automattic\WooCommerce\Internal\VariationGallery
Telemetry::is_legacy_plugin_active
Whether the legacy Additional Variation Images extension is currently active.
Method of the class: Telemetry{}
No Hooks.
Returns
true|false.
Usage
$result = Telemetry::is_legacy_plugin_active(): bool;
Telemetry::is_legacy_plugin_active() Telemetry::is legacy plugin active code WC 10.9.4
private static function is_legacy_plugin_active(): bool {
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
return is_plugin_active( self::LEGACY_PLUGIN_FILE );
}