Automattic\WooCommerce\StoreApi\Routes\V1
ProductsById::get_path_regex
Get the path of this rest route.
Метод класса: ProductsById{}
Хуков нет.
Возвращает
string.
Использование
$result = ProductsById::get_path_regex();
Код ProductsById::get_path_regex() ProductsById::get path regex WC 11.2.2
public static function get_path_regex() {
return '/products/(?P<id>[\d]+)';
}