Acessing Options from External PHP File
I’m planning to write a plugin that uses iframe in the admin panel. The iframe tag includes a php file in the plugin folder which displays an external web site information with some form fields.
So the user submits the form included in the iframe panel then I’d like to save the data somewhere. I thought I simply save it as text but I guess some users cannot change the permission if the directory is not writable.
Then I wondered if it is possible for the iframed php page to access the WordPress database and save the submitted info in there as options which could be retrieved with get_option() from the main plugin execution.
If it’s possible, could somebody give an example?
Thanks in advance.
- The topic ‘Acessing Options from External PHP File’ is closed to new replies.