[wp-trac] [WordPress Trac] #44235: GDPR - Provide filter on $email_data for the confirmed action emails
WordPress Trac
noreply at wordpress.org
Mon May 28 07:15:44 UTC 2018
#44235: GDPR - Provide filter on $email_data for the confirmed action emails
-----------------------------+------------------------------
Reporter: garrett-eclipse | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Privacy | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: administration
-----------------------------+------------------------------
Comment (by soulseekah):
Moving the filter further down would provide the content without the
###PLACEHOLDER### text. So for example, if you want to change the wording
for the description, you would filter by:
{{{
add_filter( 'user_confirmed_action_email_content', function( $content,
$data ) {
return str_replace( '###DESCRIPTION###', 'The new description',
$content );
}, 10, 2 );
}}}
Much easier than trying to work with the rendered text.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44235#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list