The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

get_option from externally available page (3 posts)

  1. Douglas Karr
    Posted 7 years ago #

    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?

  2. moshu
    Posted 7 years ago #

    Usually, adding


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

  3. Douglas Karr
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic