Using ajax reload with wordpress plugin

I am making a Wordpress plugin that provides updates to the widgets section of the page - everything works fine. The only thing that is not an ajax callback (using load with jquery). It looks like Wordpress is blocking direct access to the php file I'm trying to load (it's in / wp -content / plugins / myplugin).

How should I do it?


source to share

1 answer

Can't you make a proxy script in the root of your site to get the output of that script just by including it? eg:.

include '/wp-content/plugins/myplugin.php';




All Articles