Last active
December 14, 2015 07:58
-
-
Save kraftbj/5053950 to your computer and use it in GitHub Desktop.
Change Speak Your Mind based on post type. Code should be added to functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Modify the speak your mind text based on post type*/ | |
add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' ); | |
function custom_comment_form_args($args) { | |
if ( 'recipe' == get_post_type() ) { | |
$args['title_reply'] = 'Tell Us About The Meal!'; | |
return $args; | |
} | |
else { | |
$args['title_reply'] = 'Leave a comment'; | |
return $args; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment