How to assign a Permalink to a Function

Create an endpoint. That is a custom URL that will be handled by a callback.

Examples are How can I use WordPress functions in my stylesheet? and Is it possible to request several post types from a feed?. See also add_rewrite_endpoint() and A (Mostly) Complete Guide to the WordPress Rewrite API.

Leave a Comment