[wp-hackers] AJAX in plugins and public pages
    Heiko Rabe 
    heiko.rabe at code-styling.de
       
    Sun Feb 22 15:02:03 GMT 2009
    
    
  
The admin-ajax.php *only*! processes POST ajax calls, you can't request 
admin ajax content by using GET.
I would prefere to permit public ajax requests additional to be called 
by GET requests but the standard usage should be POST as done in admin ajax.
regards
Heiko Rabe
(www.code-styling.de)
> On Sun, Feb 22, 2009 at 4:32 PM, Heiko Rabe <heiko.rabe at code-styling.de>wrote:
>
>   
>> It's much easier to implement it in this way, if core would support it:
>>
>> add_action('wp_public_post_ajax-myfunction',
>> 'my_public_post_ajax_function');
>> add_action('wp_public_get_ajax-myfunction',
>> 'my_public_post_ajax_function');
>>
>>     
>
> If it get's implemented, shouldn't there be a single hook that handles both
> GET and POST request like in admin_ajax.php?
>
>   
    
    
More information about the wp-hackers
mailing list