An important usability aspect of any user interface is to display an acknowledgement message when users have completed a task successfully. As you may have noticed in the previous recipe, WordPress does not provide any user feedback by default after configuration data has been saved to the options table.
This recipe explains how to display an acknowledgement message on the configuration page after the user has updated the plugin's configuration options.
You should have already followed the Processing and storing plugin configuration data recipe and the resulting plugin should still be active in your development site. Alternatively, you can get the resulting code (
Chapter 3/ch2-page-header-output/ch2-page-header-output-v6.php) from the downloaded code bundle. You should rename the file
ch2-page-header-output.php before starting this recipe.