WordPress.org

Support

Support » Plugins and Hacks » get_option from externally available page

get_option from externally available page

  • Douglas Karr

    @coders4hire

    I’m building a plugin that has builds a form via widget in the sidebar. I would like to post the results of the form back to the plugin directory to a processing page.

    The problem is that the processing page is externally available this way. Form posts to page. Page posts to API of another site. The results are returned and the user returns to the page where the submission occurred.

    My page in the plugin’s directory is called ‘subscribe.php’. I want to grab some of the options for the plugin using get_option. I have an admin page that saves these to the wp_options table.

    The question: What includes or require_once pages do I need to include on my stand-alone processing page that will allow the page to get the options from the wpdb?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Usually, adding

    <?php
    require('./path-to-your-wp-install/wp-blog-header.php');
    ?>

    on the top makes it possible to call any WP function on an external file.

    Douglas Karr

    @coders4hire

    That’s it moshu! You’re a lifesaver.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_option from externally available page’ is closed to new replies.