Trying to stick to WordPress best practices and improving how I do plugin development I have searched through the codex and developer documentation to see if there is anything indicating what is preferred when developing forms in setting pages in regard to what HTML and CSS is used. My goal is to improve how I develop my plugins and stick to what is already offered for developing a settings/menu page but when I search for a discussion or documentation on the topic I am clouded with:
- Getting Started with WordPress Plugin Development: The Ultimate Guide form appears to be a generic form.
- The Complete Guide To The WordPress Settings API, Part 3: All About Menus is from 2012 and as the comments indicate it is no longer a valid approach to development.
- Creating my own Admin Forms in a WordPress CMS? only has an answer that directs people to plugins.
- When you reference the codex Writing a Plugin the only coverage in regards to the form is at the bottom where it discusses securing your forms with nonces
- The theme handbook is limited on plugin forms
- When searching for plugin development I did run across add_menu_page() with different name for first submenu item but that covers the menus not the forms
- Lastly when referencing the codex
add_submenu_page()I do not see a re-direct or mention what to do with forms.
Nothing official about the forms or if they should use WordPress's generic HTML and CSS implementation. So does WordPress have any documentation or standards that exist for forms in the menus/settings pages or is it always going to be the discretion of the developer?