I would like to use WordPress Settings API on the admin site, I currently defined my fields, sections, etc on a CONTROLLER (add_settings_section, add_settings_field, etc), but the form POST needs to point to the "options.php" page managed by WordPress and it fails because it needs to "know" about my settings which are not defined at that point (On GET it calls the controller, but POST do not because it calls a generic options.php page.).
How should I do that?... where the is correct place to define my settings?
It might be obvious, but I am just starting to use your framework.
I would like to use WordPress Settings API on the admin site, I currently defined my fields, sections, etc on a CONTROLLER (
add_settings_section, add_settings_field, etc
), but the form POST needs to point to the "options.php
" page managed by WordPress and it fails because it needs to "know" about my settings which are not defined at that point (On GET it calls the controller, but POST do not because it calls a genericoptions.php
page.).How should I do that?... where the is correct place to define my settings?
It might be obvious, but I am just starting to use your framework.
Thank you.