undefined function?!
-
Okay, I’m writing a plugin (ajax Contact form) and I’m curious why many supporting files report ‘call to undefined function: get_option()’
What the heck? get_option is a wp global, no? It works in one php file but not in another. I though maybe everything had to be in the root plugin directory else it can’t call globals, but that made no difference either.
I’ve tried the plugin on my site and locally on my mac using MAMP and they bork at the same php files.
What gives?
Sorry if it’s a n00b question, but I’ve googled high and low and have yet to find an answer, and it’s the second project that’s hit the wall because of this error.
In short: globals work fine except in some files.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘undefined function?!’ is closed to new replies.