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
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Modify the comment link text in comments | |
add_filter( 'bizznis_post_info', 'custom_post_info_filter' ); | |
function custom_post_info_filter( $post_info ) { | |
return '[post_comments zero="Leave a Comment" one="1 Comment" more="% Comments"]'; | |
} |
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
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Modify comments title text in comments | |
add_filter( 'bizznis_title_comments', 'custom_bizznis_title_comments' ); | |
function custom_bizznis_title_comments() { | |
$title = '<h3>Comments</h3>'; | |
return $title; | |
} |
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
<?php | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Modify trackbacks title text in comments | |
add_filter( 'bizznis_title_pings', 'custom_bizznis_title_pings' ); | |
function custom_bizznis_title_pings() { | |
echo '<h3>Trackbacks</h3>'; | |
} |
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
<?php | |
//* Do NOT include the opening php tag | |
//* Modify the comment form title in comments | |
add_filter( 'comment_form_defaults', 'custom_comment_form_title' ); | |
function custom_comment_form_title( $defaults ) { | |
$defaults['title_reply'] = 'Leave a Comment'; | |
return $defaults; | |
} | |
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
<?php | |
//* Do NOT include the opening php tag | |
//* Modify the size of the Gravatar in comments | |
add_filter( 'bizznis_comment_list_args', 'custom_comments_gravatar_size' ); | |
function custom_comments_gravatar_size( $args ) { | |
$args['avatar_size'] = 52; | |
return $args; | |
} |
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
<?php | |
//* Do NOT include the opening php tag | |
//* Add a comment policy box in comments | |
add_action( 'bizznis_comments', 'custom_comment_policy', 6 ); | |
function custom_comment_policy() { | |
if ( is_single() && !is_user_logged_in() && comments_open() ) { | |
?> | |
<div class="comment-policy-box"> | |
<p class="comment-policy"><small><strong>Comment Policy:</strong>Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.</small></p> |