Created
July 8, 2017 12:32
-
-
Save manhleo93/f50fd3bd50c1d1ff9042a8174c0e4377 to your computer and use it in GitHub Desktop.
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
// Change 'genesis_html5_comment_callback' to 'gtcn_basic_callback' provided by Greg's Threaded Comment Numbering plugin for numbering commnets | |
add_filter( 'genesis_comment_list_args', 'sk_add_numbered_comments' ); | |
function sk_add_numbered_comments( $defaults ) { | |
if ( function_exists( 'gtcn_basic_callback' ) ) { | |
$defaults['callback'] = genesis_html5() ? 'gtcn_basic_callback' : 'genesis_comment_callback'; | |
} | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment