[wp-hackers] WP Rewrite
    Mark E 
    mark at simplercomputing.net
       
    Sun Feb 20 05:15:56 UTC 2011
    
    
  
On 02/19/2011 09:50 PM, Eric Mann wrote:
>     1. The endpoint always had a trailing slash. It became
>     http://mysite.com/my-api.php/
Actually if you're going to use WP Rewrite, then you're loading WP, in 
which case you don't really need to bother for a simple API endpoint. 
Just use the site url itself and pass in some parms 
(thisorthat.com/?parm=val) , then have your plugin hook in during init 
to test for them.
That's one approach.
Mark
    
    
More information about the wp-hackers
mailing list