plugin development - Add_menu_page and saving settings

admin2025-01-08  4

I am working on an WP plugin and have my settings in a created menu page. When I save the page my settings are saved without any problems, but I don't return to the settings page but to a page where you can see all settings that exists in WordPress.

How can I return the user to my own settings page?

I post to options.php as described in the help docs.

I am working on an WP plugin and have my settings in a created menu page. When I save the page my settings are saved without any problems, but I don't return to the settings page but to a page where you can see all settings that exists in WordPress.

How can I return the user to my own settings page?

I post to options.php as described in the help docs.

Share Improve this question edited Aug 22, 2013 at 9:10 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Aug 22, 2013 at 7:42 MarsMars 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Use the Settings API or hook a function to admin_init that checks permissions and nonces, saves the updated values and redirects to your settings page.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736267822a1225.html

最新回复(0)