Automattic\WooCommerce\StoreApi\Routes\V1

CartCouponsByCode::get_path_regex()public staticWC 1.0

Get the path of this rest route.

Method of the class: CartCouponsByCode{}

No Hooks.

Return

String.

Usage

$result = CartCouponsByCode::get_path_regex();

CartCouponsByCode::get_path_regex() code WC 9.1.2

public static function get_path_regex() {
	return '/cart/coupons/(?P<code>[\w-]+)';
}