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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -