htmlburger / wpemerge

A modern, MVC-powered WordPress as a CMS workflow. 🚀
https://wpemerge.com/
GNU General Public License v2.0
453 stars 38 forks source link

(QUESTION) How to handle settings api update on the wp-admin site? #35

Open dulfe opened 2 years ago

dulfe commented 2 years ago

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.

Thank you.