wp-router icon indicating copy to clipboard operation
wp-router copied to clipboard

Get route helper with args

Open quaidesbalises opened this issue 7 years ago • 0 comments

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 ! 👍

quaidesbalises avatar Jul 04 '17 19:07 quaidesbalises