Automattic\WooCommerce\StoreApi\Routes

RouteInterface{} │ interface │ WC 1.0

RouteInterface.

No Hooks.

Usage

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

Methods

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

RouteInterface{} code WC 11.1.2

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