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