[wp-hackers] ajax to call function in theme
if.website at gmail.com
Thu Oct 29 20:11:37 UTC 2009
On Thu, Oct 29, 2009 at 3:07 PM, Otto <otto at ottodestruct.com> wrote:
> That should probably be clarified then. If you're going to send AJAX
> requests to separate files, then those separate files have absolutely
> no visibility to any part of WordPress at all.
> The normal case should be the action method, because you probably want
> to access WordPress or the database, in some manner.
I agree. It's a bad example, and there's not even any mention of
using wp-load.php, which is meant for people who insist on doing it
that way anyways.
More information about the wp-hackers