Hi, I have added this to my functions.php and I am hoping to replace the ‘View Post’ text with the place icon… can you tell me what I am doing wrong?
// Alternate Text
function alternate_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘View Post’ :
$translated_text = __( ‘[x_icon type=“play”]Your Custom View Post Text’, ‘x’ );
break;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘alternate_text’, 20, 3 );
//