<?php
/**
* Change "Don't want these emails?" in footer
*
* @param $text string
* @return $text string
* * * * * * * * * * * * * * * * * * */
function gh_change_dont_want_these_emails( $text ) {
$text = str_ireplace( "Don't want these emails?", "Custom Message", $text );
return $text;
}
add_filter( 'gettext', 'gh_change_dont_want_these_emails' );
Was this helpful?
Let us know if this document answered your question. That’s the only way we can improve.
