wp-router
wp-router copied to clipboard
Get route helper with args
Hello !
Thanks a lot for this library ! That's what I need.
What about a helper function to get the route by name with args ?
get_route('name_of_route', [$slug, $id]);
// which return : http://example.com/item-slug/12
Why not improve the public function url in the class-wp-router for that ?
That would be very helpful ! 👍