[wp-hackers] register_settings and admin_notices

Mohammad Jangda batmoo at gmail.com
Fri Oct 23 12:27:52 UTC 2009


Here's the code that displays the "updated" message (in options-head.php):

<?php if (isset($_GET['updated'])) : ?>
> <div id="message" class="updated fade"><p><strong><?php _e('Settings
> saved.') ?></strong></p></div>
> <?php endif; ?>
>

I don't see an easy way to change that.

You could use admin_notices to display the custom message and use javascript
to hide the default "Settings Saved" message (obviously a subpar solution).


More information about the wp-hackers mailing list