plugin – updating post data
-
Hey there,
I’m writing a plugin that shows up on every edit post page. I was wondering about how to store the data in the database. Each guide I find seem to refer to plugins that are apart of the admin panel but not the edit post.I know that this needs to be used.
update_option(‘plugin_dbhost’, $dbhost);
But since the data is referring to individual pages, so I need to name this differently? Perhaps this?
update_option (‘plugin_dbhost’.$this->id, $dbhost);
The topic ‘plugin – updating post data’ is closed to new replies.