Method |
Description |
|
add_avatar_for_review_comment_type ( array $comment_types ) : array |
Make sure WP displays avatars for comments with the review type. |
|
add_comment_purchase_verification ( integer $comment_id ) : boolean |
Determine if a review is from a verified owner at submission. |
|
add_comment_rating ( integer $comment_id ) |
Rating field for comments. |
|
check_comment_rating ( array $comment_data ) : array |
Validate the comment ratings. |
|
clear_transients ( integer $post_id ) |
Ensure product average rating and review count is kept up to date. |
|
comment_moderation_recipients ( array $emails, integer $comment_id ) : array |
Modify recipient of review email. |
|
delete_comments_count_cache ( ) : void |
Delete comments count cache whenever there is
new comment or the status of a comment changes. Cache
will be regenerated next time WC_Comments::wp_count_comments()
is called. |
|
exclude_order_comments ( array $clauses ) : array |
Exclude order comments from queries and RSS. |
|
exclude_order_comments_from_feed_join ( string $join ) : string |
Exclude order comments from queries and RSS. |
|
exclude_order_comments_from_feed_where ( string $where ) : string |
Exclude order comments from queries and RSS. |
|
exclude_webhook_comments ( array $clauses ) : array |
Exclude webhook comments from queries and RSS. |
|
exclude_webhook_comments_from_feed_join ( string $join ) : string |
Exclude webhook comments from queries and RSS. |
|
exclude_webhook_comments_from_feed_where ( string $where ) : string |
Exclude webhook comments from queries and RSS. |
|
get_average_rating_for_product ( WC_Product &$product ) : float |
Get product rating for a product. Please note this is not cached. |
|
get_rating_counts_for_product ( WC_Product &$product ) : array |
Get product rating count for a product. Please note this is not cached. |
|
get_review_count_for_product ( WC_Product &$product ) : integer |
Get product review count for a product (not replies). Please note this is not cached. |
|
init ( ) |
Hook in methods. |
|
wp_count_comments ( object $stats, integer $post_id ) : object |
Remove order notes and webhook delivery logs from wp_count_comments(). |
|