Automattic\WooCommerce\StoreApi\Routes\V1
ProductsBySlug::get_path_regex
Get the path of this rest route.
Method of the class: ProductsBySlug{}
No Hooks.
Returns
String.
Usage
$result = ProductsBySlug::get_path_regex();
ProductsBySlug::get_path_regex() ProductsBySlug::get path regex code WC 10.8.1
public static function get_path_regex() {
return '/products/(?P<slug>[\S]+)';
}