WC_Comments::add_review_comment_filter()public staticWC 6.0.0

Add Product Reviews filter for review comment type.

{} It's a method of the class: WC_Comments{}

No Hooks.

Return

Array.

Usage

$result = WC_Comments::add_review_comment_filter( $comment_types ): array;
$comment_types(array) (required)
Array of comment type labels keyed by their name.

Changelog

Since 6.0.0 Introduced.

Code of WC_Comments::add_review_comment_filter() WC 6.7.0

public static function add_review_comment_filter( array $comment_types ): array {
	$comment_types['review'] = __( 'Product Reviews', 'woocommerce' );
	return $comment_types;
}