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:
add_action('parse_request', 'my_custom_url_handler');
function my_custom_url_handler() {
if( isset($_GET['myplugin']) ) {
// do something
exit();
}
}
That should set you on the right direction. parse_request happens before WordPress runs any of the complicated WordPress queries used to get the posts for the current URL.