How to configure routing in WP?

Welcome. I figured out how to add parameters using add_rewrite_endpoint;
How can I do that would I enter for example domain.ru/request/id and that would run a certain function and it was passed to this id.
Just when add_rewrite_endpoint if you add domain.ru/название/значение it loads the template index.php I would like to have that executed a function from my plugin.
April 3rd 20 at 17:25
0 answer

Find more questions by tags WordPress