Remove “says” from comments

Hope this is gonna help. Please try this snippet. Put it in your themes functions.php or you could it load it thorough a plugin or any other way-

function the_dramatist_remove_says_from_comment( $translation, $text, $domain ) {
    //what text you want to have instead of 'says' in comments. For removing 'says' keep this blank
    $new_var="";
    $translations = &get_translations_for_domain( $domain );
    if ( $text == '<cite class="fn">%s</cite> <span class="says">says:</span>' ) {
        if($new_var) $new_var=" ".$new_var; //compensate for the space character
        return $translations->translate( '<cite class="fn">%s</cite><span class="says">'.$new_var.':</span>' );
    } else {
        return $translation; // standard text
    }  
}
add_filter('gettext', 'the_dramatist_remove_says_from_comment', 10, 4);

Leave a Comment