If you are a wordpress developer and you code plugins that have variable settings inserted with register_setting() function into the database, then you must also add a notice to inform users when specific options or settings are saved. In order to do that, you’ll just need to add the following code snippet, anywhere in your form:

[php] <?php if( isset($_GET[‘settings-updated’]) ) { ?>
<div id=”message” class=”updated”>
<p><strong><?php _e(‘Settings saved.’) ?></strong></p>
</div>
<?php } ?>
[/php]

Good luck.

Published by Graphic Xtreme

1 Comment

  1. Thank you! I’ve been looking for this little snippet for hours. Perfect.

Comments are closed.