How to save default values into an option and delete those upon actvation and deactivation in wordpress?
The following code worked. According to the comment by Milo, I have been doing it wrong by using the option name. So instead I used each keys from the option and used the array to pass the defaults. Thanks milo! :_ register_activation_hook( __FILE__, ‘twmm_activate’); //activate plugin options open activation of plugin register_deactivation_hook(__FILE__, ‘twmm_deactivate’); //deactivate plugin … Read more