Custom admin pages in WordPress are one of those things that aren’t often needed if you’re using something like the Settings API, the add_menu_page function, or a similar API function.
And in many, if not most, cases all of the above suffice; however, there are times where you need more control over what’s displayed to the user, how the input is handled once it’s submitted, and then what’s returned to the user after the data has been saved to the database.
In those cases, it’s helpful to know how to write custom admin pages in WordPress and all that comes with it – from sanitization, custom error messages, validation, and page redirection.



