WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

Automattic\WooCommerce\RestApi

Package{} WC 1.0

Запрещена (устарела). Больше не поддерживается и может быть удалена. Используйте \Automattic\WooCommerce\RestApi\Server directly.

Main package class.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Package = new Package();
// use class methods

Методы

  1. ERROR: no method name found on line ` */`
  2. ERROR: no method name found on line ``
  3. ERROR: no method name found on line ``
  4. ERROR: no method name found on line ` *`
  5. get_path()
  6. get_path()
  7. ERROR: no method name found on line ` */`
  8. ERROR: no method name found on line ``
  9. ERROR: no method name found on line ``
  10. get_version()
  11. ERROR: no method name found on line ``
  12. ERROR: no method name found on line ` * @return string`
  13. ERROR: no method name found on line ``
  14. init()
  15. ERROR: no method name found on line ` * Return the version of the package.`
  16. ERROR: no method name found on line ` }`
  17. ERROR: no method name found on line ``
  18. ERROR: no method name found on line ``
  19. ERROR: no method name found on line ``
  20. ERROR: no method name found on line ``
  21. ERROR: no method name found on line ``
  22. ERROR: no method name found on line ``

Список изменений

Устарела Use \Automattic\WooCommerce\RestApi\Server directly.

Код Package{} WC 4.6.1

<?php
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();
	}
}