How to use native WordPress functions inside my own…
-
I’m trying to use “add_options” inside an install function.
Here is my code…
function installPlugin() { add_option("shTitle", "Stick Header"); } register_activation_hook(__FILE__,'installPlugin');
From what I understand, the register_activation_hook function will run when the plugin is activated, meaning the installPlugin function should run then and create the option, if it doesn’t already exist.
However, it’s not. Do you know why?
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use native WordPress functions inside my own…’ is closed to new replies.