I want to wrap <strong></strong>
around the words "logged out":
add_filter( 'gettext', 'wpse17709_gettext', 10, 2 );
function wpse17709_gettext( $custom_translation, $login_texts ) {
// Messages
if ( 'You are now logged out.' == $login_texts ) { return ''; } // Log out message
return $translation
}
...however adding HTML elements to the text string breaks my page.
How can I add <strong></strong>
to this message text? Is there a means other than gettext
?
gettext
filter has performance implicationsgettext
for the page title, user name label and password label. Would you deem this frequency of use of the said filter to be low enough to avoid known performance concerns?