[wp-hackers] Custom Admin messages

Austin Matzko if.website at gmail.com
Wed Feb 25 16:43:00 GMT 2009

On Wed, Feb 25, 2009 at 10:37 AM, scribu <scribu at gmail.com> wrote:
> I was trying to add a custom error message on the post editing screen, but
> then I found out that there is no hook for that and all messages are
> hardcoded in edit-form-advanced.php so the only way I could do this is using
> jQuery.
> I think a filter on $messages would come in really handy in such cases. Any
> objections?

Why can't you add a callback for the 'admin_notices' action hook?  It
fires off for every admin page header.

More information about the wp-hackers mailing list