[wp-hackers] Custom Admin messages
scribu
scribu at gmail.com
Wed Feb 25 16:50:40 GMT 2009
Forgot about that. Thanks.
On Wed, Feb 25, 2009 at 6:43 PM, Austin Matzko <if.website at gmail.com> wrote:
> 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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
http://scribu.net
More information about the wp-hackers
mailing list