Fatal error: Call to undefined function register_setting() in
-
I’m rewriting my plugin to use classes. The core code works fine but the admin class gives me still some errors. one of them is:
Fatal error: Call to undefined function register_setting() inthe method i have written is:
/* * register plugin settings */ function RegisterPluginSettings() { // WP: http://codex.wordpress.org/Function_Reference/register_setting register_setting($this->mPluginSettingsGroup, $this->mStrPluginOptionsName); }do I need to add a global WP variable in this method? I thought register_setting would be available everywhere?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Fatal error: Call to undefined function register_setting() in’ is closed to new replies.