[wp-hackers] Best practice: access plugins php files

Aaron Jorbin aaron at jorb.in
Tue Aug 10 23:55:54 UTC 2010


On Wed, Aug 11, 2010 at 2:34 AM, Lox <lox.dev at knc.nc> wrote:

> Should I call it directly like this:
> /wp-content/plugins/myplugin/ajax.php or is there a preferred way ?
>

It's documented in the codex.  http://codex.wordpress.org/AJAX_in_Plugins .
 Don't access the files directly, use the hooks available specifically for
this.

-Aaron

http://aaron.jorb.in
twitter: twitter.com/aaronjorbin


More information about the wp-hackers mailing list