Skip to content

Instantly share code, notes, and snippets.


srikat/functions.php Secret

Last active Aug 29, 2015
What would you like to do?
Customize the Author Says text in Genesis comments for Post Author:
//* Modify the author says text in comments while showing different text for comments made by author that published the post
add_filter( 'comment_author_says_text', 'sk_comment_author_says_text' );
function sk_comment_author_says_text() {
global $post, $comment;
if ( $comment->user_id === $post->post_author ) {
return '- the post author says';
} else {
return '- the commentator says';
//* Modify the author says text in comments
add_filter( 'comment_author_says_text', 'sp_comment_author_says_text' );
function sp_comment_author_says_text() {
return 'author says';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.