Server IP : 192.64.112.168 / Your IP : 3.129.63.214 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/plugins/woocommerce/includes/rest-api/ |
Upload File : |
<?php /** * Deprecated notice: This class is deprecated as of version 4.5.0. WooCommerce API is now part of core and not packaged separately. * * Returns information about the package and handles init. * * @package WooCommerce\RestApi */ namespace Automattic\WooCommerce\RestApi; defined( 'ABSPATH' ) || exit; /** * Main package class. * * @deprecated Use \Automattic\WooCommerce\RestApi\Server directly. */ class Package { /** * Version. * * @deprecated since 4.5.0. This tracks WooCommerce version now. * @var string */ const VERSION = WC_VERSION; /** * Init the package - load the REST API Server class. * * @deprecated since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::instance()->init() */ public static function init() { wc_deprecated_function( 'Automattic\WooCommerce\RestApi\Server::instance()->init()', '4.5.0' ); \Automattic\WooCommerce\RestApi\Server::instance()->init(); } /** * Return the version of the package. * * @deprecated since 4.5.0. This tracks WooCommerce version now. * @return string */ public static function get_version() { wc_deprecated_function( 'WC()->version', '4.5.0' ); return WC()->version; } /** * Return the path to the package. * * @deprecated since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::get_path() * @return string */ public static function get_path() { wc_deprecated_function( 'Automattic\WooCommerce\RestApi\Server::get_path()', '4.5.0' ); return \Automattic\WooCommerce\RestApi\Server::get_path(); } }