File: D:/HostingSpaces/BOoms/pro-oils.be/wwwroot/wp-content/plugins/woocommerce-admin/src/Package.php
<?php
/**
* Returns information about the package and handles init.
*
* @package Automattic/WooCommerce/WCAdmin
*/
namespace Automattic\WooCommerce\Admin;
defined( 'ABSPATH' ) || exit;
/**
* Main package class.
*/
class Package {
/**
* Version.
*
* @var string
*/
const VERSION = '0.23.3';
/**
* Init the package.
*
* Only initialize for WP 5.2 or greater.
*/
public static function init() {
$wordpress_minimum_met = version_compare( get_bloginfo( 'version' ), '5.2', '>=' );
if ( ! $wordpress_minimum_met ) {
return;
}
FeaturePlugin::instance()->init();
}
/**
* Return the version of the package.
*
* @return string
*/
public static function get_version() {
return self::VERSION;
}
/**
* Return the path to the package.
*
* @return string
*/
public static function get_path() {
return dirname( __DIR__ );
}
}