[wp-trac] [WordPress Trac] #33587: Notification Functions Should be Replaced by Hooks
WordPress Trac
noreply at wordpress.org
Fri Aug 28 13:28:34 UTC 2015
#33587: Notification Functions Should be Replaced by Hooks
-------------------------+------------------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by pfefferle):
I would love to see the same filters/hooks for the notifications that are
used by the views. For example:
{{{
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . apply_filters(
'get_comment_text', $comment->comment_content, $comment, $args ) ) .
"\r\n\r\n";
}}}
or at least some compatible filters like:
{{{
apply_filters( 'get_comment_notification_text', $comment->comment_content,
$comment, $args ) )
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33587#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list