[wp-hackers] Best practice: access plugins php files
Aaron Jorbin
aaron at jorb.in
Wed Aug 11 01:36:02 UTC 2010
On Tue, Aug 10, 2010 at 8:02 PM, Lox <lox.dev at knc.nc> wrote:
> So, I have a help.php in my plug-in dir witch get called by thickbox
> as an iframe. This file provides help for form fields: example,
> help.php?field=password. So basically, it does not need any wordpress
> thing.
>
Why not stay consistent with the rest of the WordPress experience and use
add_contextual_help ?
http://phpxref.ftwr.co.uk/wordpress/wp-admin/includes/template.php.source.html#l3670
http://aaron.jorb.in
twitter: twitter.com/aaronjorbin
On Tue, Aug 10, 2010 at 8:02 PM, Lox <lox.dev at knc.nc> wrote:
> 2010/8/11 scribu <scribu at gmail.com>:
> > The recommended way is to use the ajax hooks in wp-admin/admin-ajax.php
>
> I know that for AJAX, thks. Maybe it was not the best example...
>
> So, I have a help.php in my plug-in dir witch get called by thickbox
> as an iframe. This file provides help for form fields: example,
> help.php?field=password. So basically, it does not need any wordpress
> thing.
>
> Should I access it like this:
> wp-content/plugins/myplugin/help.php?field=password ?
>
> --
> Lox
> lox.dev at knc.nc
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list