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 | |
/* | |
Plugin Name: My Shortcode Ranking Filter with comment template for WP-Comment Rating Plugin | |
Description: Displays the best comments with the template | |
*/ | |
/* | |
* IMPORTANT: Only works for PHP >= 5.3 AND WP-Comment Rating >= 1.3 | |
*/ |
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 | |
/* | |
Plugin Name: My Shortcode Ranking Filter for WP-Comment Rating Plugin | |
Description: Hooks into the sql filter of the WP-Comment-Rating and allows the usage of the shortcode like this: [wpbcr_comment_ranking do="filter_by_xy_meta"] | |
*/ | |
add_filter( 'wpbcr_shortcode_best_comments_sql', 'my_wpbcr_shortcode_best_comments_sql', 10, 6 ); | |
/** |
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 | |
/* | |
Plugin Name: Add stars to comments | |
Description: Adds stars to comments when comment gets 10 up-votes | |
*/ | |
add_filter( 'wpbcr_output_elements', 'my_wpbcr_output_elements', 10, 2 ); | |
function my_wpbcr_output_elements( $elements, $comment ) { |
NewerOlder