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