I\'m trying to write a Wordpress Plug-in but can\'t seem to figure out how you would modify how a URL gets handled, so for example: any requests made for:
In order to handle just a specific URL use the code below:
add_action('parse_request', 'my_custom_url_handler'); function my_custom_url_handler() { if(isset($_GET['myplugin']) && $_SERVER["REQUEST_URI"] == '/custom_url') { echo "TEST"; exit(); } }