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 and that would run a certain function and it was passed to this id.
Just when add_rewrite_endpoint if you addназвание/значение 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