woocommerce_review_gravatar_size
Display the review authors gravatar
Usage
add_filter( 'woocommerce_review_gravatar_size', 'wp_kama_woocommerce_review_gravatar_size_filter' ); /** * Function for `woocommerce_review_gravatar_size` filter-hook. * * @param array $comment WP_Comment. * * @return array */ function wp_kama_woocommerce_review_gravatar_size_filter( $comment ){ // filter... return $comment; }
- $comment(array)
- WP_Comment.
Where the hook is called
woocommerce_review_gravatar_size
woocommerce/includes/wc-template-functions.php 2012
echo get_avatar( $comment, apply_filters( 'woocommerce_review_gravatar_size', '60' ), '' );