Description
The wpmem_msg_dialog filter allows you to filter the messages that are passed to the message dialog for error and success messages.
NOTE: The html that is passed to the filter includes the formatting tags.
Parameters
$str
(string)(required) The string containing the message to be displayed.
$tag
(string)(optional) The tag of the message being displayed:
user|email|success|editsuccess|pwdchangerr|pwdchangesuccess|pwdreseterr|pwdresetsuccess|custom
Usage
[snippet slug=wpmem_msg_dialog lang=php]
Changelog
- Introduced in 2.7.4
- 3.1.0 Added $tag parameter
Source
wpmem_msg_dialog is located in legacy/dialogs.php