Passing Plugin Options to External PHP
-
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_namewhich 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
The topic ‘Passing Plugin Options to External PHP’ is closed to new replies.