Skip to content

Instantly share code, notes, and snippets.

@dlh01
Created September 27, 2013 02:07
Show Gist options
  • Save dlh01/6723285 to your computer and use it in GitHub Desktop.
Save dlh01/6723285 to your computer and use it in GitHub Desktop.
BetterWP Recent Comments: Allows you to define the "Template for comments" from a plugin or theme
add_action( 'wp_head', 'my_bwp_recent_comments_template' );
function my_bwp_recent_comments_template() {
global $bwp_rc;
$bwp_rc->options['template_comment'] = '<p>My template here</p>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment