Using an ajax reload with a WordPress plugin

I am making a WordPress plugin that provides updates in the widget section of the page – everything works fine. The one thing that doesn’t is the ajax callback (using load with jquery). It appears that WordPress is blocking direct access to the php file that I am trying to load (it is in /wp-content/plugins/myplugin).

How should I be doing this?

Related posts

Leave a Reply

1 comment

  1. Can you not make a proxy script in the root of your site to get the output of that script by simply including it? e.g.:

    <?php
    include '/wp-content/plugins/myplugin.php';
    ?>