WC_Comments::add_avatar_for_review_comment_type()public staticWC 2.3

Make sure WP displays avatars for comments with the review type.

Method of the class: WC_Comments{}

No Hooks.

Return

Array.

Usage

$result = WC_Comments::add_avatar_for_review_comment_type( $comment_types );
$comment_types(array) (required)
Comment types.

Changelog

Since 2.3 Introduced.

WC_Comments::add_avatar_for_review_comment_type() code WC 8.7.0

public static function add_avatar_for_review_comment_type( $comment_types ) {
	return array_merge( $comment_types, array( 'review' ) );
}