Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dulfe opened this issue Jun 2, 2022 · 0 comments
Open

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

dulfe opened this issue Jun 2, 2022 · 0 comments

Comments

@dulfe
Copy link

dulfe commented Jun 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant