[wp-trac] [WordPress Trac] #11062: Front-end ajax handler

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 2 15:43:24 UTC 2009


#11062: Front-end ajax handler
-------------------------+--------------------------------------------------
 Reporter:  prettyboymp  |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:  2.9       
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by filosofo):

 Replying to [ticket:11062 prettyboymp]:
 > I'm curious as to what other developers do

 I just post Ajax data to the current WP page, and I attach a callback
 method to the "init" action, and when the posted value of my Ajax is set,
 it does whatever needs to be done, after the requisite verification (user-
 permission check, nonce check, etc.).

 No extra action hooks needed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11062#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list