• Hi, I am creating a fairly simple plugin for WordPress, the plugin doesnt interact much with WordPress, its mainly there to store options for an external PHP script. I have got the plugin option feilds setup, and they are storing the information, and retrieving the information correctly on the plugin options page. But how would I go about passing those options on to an external PHP Page. – So if for example I have an option my_option_name which is configured using the wp-admin plugin options page, How could I pass that value into a basic PHP Page as a variable or such? So it can be used as a heading or title of the page. Any help with this is much appreciated, I have searched but cant find anything. Thanks Guys, I will be sure to credit you in the head of my Plugin code too. – What I need is to be able to <?php echo $this->options['my_plugin_title'] ;?> in an external file, that will be accessed directly. The closest I got what being able to use something like <?php echo get_option("blogname") ?> by including wp-blog-header.php

Viewing 1 replies (of 1 total)
  • Thread Starter jaytucker

    (@jaytucker)

    OK A better solution I think might be to access the database directly and set the strings as variables, what is the best way to “deserialise” data that has been put into the wordpress options table, so it can be read in a clear format?

Viewing 1 replies (of 1 total)

The topic ‘Passing Plugin Options to External PHP’ is closed to new replies.