Automattic\WooCommerce\StoreApi\Routes

RouteInterface{}WC 1.0

RouteInterface.

Хуков нет.

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

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

Методы

  1. public get_args()
  2. public get_path()

Код RouteInterface{} WC 8.7.0

interface RouteInterface {
	/**
	 * Get the path of this REST route.
	 *
	 * @return string
	 */
	public function get_path();

	/**
	 * Get arguments for this REST route.
	 *
	 * @return array An array of endpoints.
	 */
	public function get_args();
}