Default values automatically save in database when plugin will be activated -
i have used wordpress settings api php class framework, found here http://tareq.wedevs.com/2012/06/wordpress-settings-api-php-class/, create first plugin setting page.
everything working fine except default option values not saving in database until hit "save" going setting page. saved automatically when activate plugin.
i tried using register_activation_hook()
failed. not sure how use framework register_activation_hook()
. can check codes going link mentioned above. finish first plugin stuck on this.
Comments
Post a Comment