Why need init_settings() function for plugins?
-
Im creating a Woocommerce payment gateway plugin and I see in lots of other plugins that the constructor also calls for the method init_settings()
$this->init_settings();
Why is this needed? My settings are displayed with init_form_fields() and saved with process_admin_options action. So why is the init_settings needed and what does it do? Fields under my plugin settings get saved and always have new values when I navigate back to that settings page. I see that paypal plugin also has this method run in the constructor, but I cant find any relevant information about why is it necessary.
I have also raised the question here: http://wordpress.stackexchange.com/questions/177611/why-need-init-settings-function
The topic ‘Why need init_settings() function for plugins?’ is closed to new replies.