WC_Comments::add_review_comment_filter()public staticWC 6.0.0

Add Product Reviews filter for review comment type.

Метод класса: WC_Comments{}

Хуков нет.

Возвращает

Массив.

Использование

$result = WC_Comments::add_review_comment_filter( $comment_types ): array;
$comment_types(массив) (обязательный)
Array of comment type labels keyed by their name.

Список изменений

С версии 6.0.0 Введена.

Код WC_Comments::add_review_comment_filter() WC 8.7.0

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