Developers: Actions and Filters

Filters

File Filter Name Arguments
/includes/global/rating-output.php
  comment_rating_field_pro_rating_output_sort_posts_by_rating apply_filters( 'comment_rating_field_pro_rating_output_sort_posts_by_rating', array()
  comment_rating_field_pro_rating_output_custom_css apply_filters( 'comment_rating_field_pro_rating_output_custom_css', $css, $groups )
  comment_rating_field_pro_rating_output_build_average_rating_html_schema_title apply_filters( 'comment_rating_field_pro_rating_output_build_average_rating_html_schema_title', strip_tags( $post->post_title )
  comment_rating_field_pro_rating_output_build_average_rating_html_show_rating_number_average apply_filters( 'comment_rating_field_pro_rating_output_build_average_rating_html_show_rating_number_average', $rating_number, $group, $averageRating )
  comment_rating_field_pro_rating_output_build_average_rating_html_show_rating_number_breakdown apply_filters( 'comment_rating_field_pro_rating_output_build_average_rating_html_show_rating_number_breakdown', $rating_number, $group, $averageRatings[ $field['fieldID'] ], $field )
  comment_rating_field_pro_rating_output_build_average_rating_html apply_filters( 'comment_rating_field_pro_rating_output_build_average_rating_html', $html, $group )
  comment_rating_field_pro_rating_output_display_comment_rating apply_filters( 'comment_rating_field_pro_rating_output_display_comment_rating', $html, $this->group, $comment_id, $comment, $post_id, $post )
  comment_rating_field_pro_rating_output_display_comment_rating_rss apply_filters( 'comment_rating_field_pro_rating_output_display_comment_rating_rss', $rss, $this->group, $comment_id, $comment_text, $post_id, $post )
  comment_rating_field_pro_rating_output_build_comment_rating_html_show_rating_number_average apply_filters( 'comment_rating_field_pro_rating_output_build_comment_rating_html_show_rating_number_average', $rating_number, $group, $averageRating )
  comment_rating_field_pro_rating_output_build_comment_rating_html_show_rating_number_breakdown apply_filters( 'comment_rating_field_pro_rating_output_build_comment_rating_html_show_rating_number_breakdown', $rating_number, $group, $ratings[ $field['fieldID'] ], $field )
  comment_rating_field_pro_rating_output_build_comment_rating_html_comment_text apply_filters( 'comment_rating_field_pro_rating_output_build_comment_rating_html_comment_text', $content, $comment )
  crfp_display_comment_rating apply_filters( 'crfp_display_comment_rating', $html )
  comment_rating_field_pro_rating_output_build_comment_rating_rss apply_filters( 'comment_rating_field_pro_rating_output_build_comment_rating_rss', $rss, $group )
/includes/global/common.php
  comment_rating_field_pro_common_get_post_types apply_filters( 'comment_rating_field_pro_common_get_post_types', $types )
  comment_rating_field_pro_common_get_excluded_post_types apply_filters( 'comment_rating_field_pro_common_get_excluded_post_types', $types )
  comment_rating_field_pro_common_get_taxonomies apply_filters( 'comment_rating_field_pro_common_get_taxonomies', $taxonomies )
  comment_rating_field_pro_common_get_post_type_taxonomies apply_filters( 'comment_rating_field_pro_common_get_post_type_taxonomies', $taxonomies, $post_type )
  comment_rating_field_pro_common_get_excluded_taxonomies apply_filters( 'comment_rating_field_pro_common_get_excluded_taxonomies', $taxonomies )
  comment_rating_field_pro_common_get_max_rating_options apply_filters( 'comment_rating_field_pro_common_get_max_rating_options', $ratings )
  comment_rating_field_pro_common_get_user_ip_address apply_filters( 'comment_rating_field_pro_common_get_user_ip_address', $ip, $_SERVER )
/includes/global/groups.php
  comment_rating_field_pro_groups_get_output_group_types apply_filters( 'comment_rating_field_pro_groups_get_output_group_types', $output_groups )
  comment_rating_field_pro_groups_get_defaults apply_filters( 'comment_rating_field_pro_groups_get_defaults', $defaults )

Actions

File Action Name Arguments
/includes/admin/admin.php
  comment_rating_field_pro_plugin_admin_menu do_action( 'comment_rating_field_pro_plugin_admin_menu' )
/includes/global/rating-output.php
  comment_rating_field_pro_rating_output_css do_action( 'comment_rating_field_pro_rating_output_css' )
  comment_rating_field_pro_rating_output_rss_css do_action( 'comment_rating_field_pro_rating_output_rss_css' )
  comment_rating_field_pro_rating_output_scripts do_action( 'comment_rating_field_pro_rating_output_scripts' )
/includes/global/rating-input.php
  comment_rating_field_pro_rating_input_save_rating do_action( 'comment_rating_field_pro_rating_input_save_rating', $comment_id, $field, $group, $average_rating, $ratings )
  comment_rating_field_pro_rating_input_update_post_rating_by_comment_id do_action( 'comment_rating_field_pro_rating_input_update_post_rating_by_comment_id', $comment_id, $comment )
  comment_rating_field_pro_rating_input_updated_post_rating do_action( 'comment_rating_field_pro_rating_input_updated_post_rating', $post_id, $totalRatings, $averageRatings, $commentsWithARating, $countRatings, $averageRating, $ratingSplit, $ratingSplitPercentages )
  comment_rating_field_pro_rating_input_reset_comment_rating_by_comment_id do_action( 'comment_rating_field_pro_rating_input_reset_comment_rating_by_comment_id', $comment->comment_ID, $comment )
  comment_rating_field_pro_rating_input_reset_comment_rating_by_post_id do_action( 'comment_rating_field_pro_rating_input_reset_comment_rating_by_post_id', $post_id )
  comment_rating_field_pro_rating_input_reset_post_rating_by_post_id do_action( 'comment_rating_field_pro_rating_input_reset_post_rating_by_post_id', $post_id )