Developers: Actions and Filters

Filters

File Filter Name Arguments
/includes/global/rating-output.php
 
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_filter_comments_by_rating_sort
apply_filters( 'comment_rating_field_pro_rating_output_filter_comments_by_rating_sort', $comment_args, $orderby, $order, sanitize_text_field( $_GET['sort'] )
 
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 )
 
comment_rating_field_pro_rating_output_get_post_total_ratings
apply_filters( 'comment_rating_field_pro_rating_output_get_post_total_ratings', $result, $post_id )
 
comment_rating_field_pro_rating_output_get_post_average_rating
apply_filters( 'comment_rating_field_pro_rating_output_get_post_average_rating', $result, $post_id )
 
comment_rating_field_pro_rating_output_get_post_totals
apply_filters( 'comment_rating_field_pro_rating_output_get_post_totals', $result, $post_id )
 
comment_rating_field_pro_rating_output_get_post_averages
apply_filters( 'comment_rating_field_pro_rating_output_get_post_averages', $result, $post_id )
 
comment_rating_field_pro_rating_output_get_post_rating_split
apply_filters( 'comment_rating_field_pro_rating_output_get_post_rating_split', $result, $post_id )
 
comment_rating_field_pro_rating_output_get_post_rating_split_percentages
apply_filters( 'comment_rating_field_pro_rating_output_get_post_rating_split_percentages', $result, $post_id )
/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_precision_options
apply_filters( 'comment_rating_field_pro_common_get_precision_options', $precision )
 
comment_rating_field_pro_common_get_user_ip_address
apply_filters( 'comment_rating_field_pro_common_get_user_ip_address', $ip, $_SERVER )
 
comment_rating_field_pro_common_get_user_roles
apply_filters( 'comment_rating_field_pro_common_get_user_roles', $roles )
 
comment_rating_field_pro_common_get_excluded_user_roles
apply_filters( 'comment_rating_field_pro_common_get_excluded_user_roles', array()
/includes/global/settings.php
 
comment_rating_field_pro_settings_get_setting
apply_filters( 'comment_rating_field_pro_settings_get_setting', $setting, $key )
 
comment_rating_field_pro_settings_get_settings
apply_filters( 'comment_rating_field_pro_settings_get_settings', $settings )
 
comment_rating_field_pro_settings_update_setting
apply_filters( 'comment_rating_field_pro_settings_update_setting', $value, $key )
 
comment_rating_field_pro_settings_update_settings
apply_filters( 'comment_rating_field_pro_settings_update_settings', $settings )
 
comment_rating_field_pro_settings_delete_setting
apply_filters( 'comment_rating_field_pro_settings_delete_setting', $settings, $key )
 
comment_rating_field_pro_get_default_settings
apply_filters( 'comment_rating_field_pro_get_default_settings', $defaults )
/includes/global/query.php
 
comment_rating_field_pro_query_sort_posts_by_rating
apply_filters( 'comment_rating_field_pro_query_sort_posts_by_rating', $post_types, $query )
 
comment_rating_field_pro_rating_output_sort_posts_by_rating
apply_filters( 'comment_rating_field_pro_rating_output_sort_posts_by_rating', $post_types, $query )
 
comment_rating_field_pro_rating_output_sort_taxonomy_archive
apply_filters( 'comment_rating_field_pro_rating_output_sort_taxonomy_archive', $taxonomies, $query )
/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, $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 )
 
comment_rating_field_pro_rating_input_delete_comment_rating
do_action( 'comment_rating_field_pro_rating_input_delete_comment_rating', $comment_id )
/includes/global/settings.php
 
comment_rating_field_pro_settings_delete_settings
do_action( 'comment_rating_field_pro_settings_delete_settings' )