[wp-trac] [WordPress Trac] #57791: Create function to output admin notices
WordPress Trac
noreply at wordpress.org
Thu Aug 17 20:27:50 UTC 2023
#57791: Create function to output admin notices
-------------------------------------------------+-------------------------
Reporter: joedolson | Owner: joedolson
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Administration | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback | administration
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"56408" 56408]:
{{{
#!CommitTicketReference repository="" revision="56408"
Administration: Add function to standardize admin notices.
Add functions `wp_get_admin_notice()` and `wp_admin_notice()` to create
and output admin notices & tests for usage. New functions accept a message
and array of optional arguments. This commit does not implement the
functions. Include new filters: `wp_admin_notice_args`,
`wp_admin_notice_markup` and action: `wp_admin_notice`.
Props joedolson, costdev, sakibmd, dasnitesh780, sabernhardt.
Fixes #57791.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57791#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list