wc_review_is_from_verified_owner()WC 1.0

Get review verification status.

No Hooks.

Return

true|false.

Usage

wc_review_is_from_verified_owner( $comment_id );
$comment_id(int) (required)
Comment ID.

wc_review_is_from_verified_owner() code WC 9.4.2

function wc_review_is_from_verified_owner( $comment_id ) {
	$verified = get_comment_meta( $comment_id, 'verified', true );
	return '' === $verified ? WC_Comments::add_comment_purchase_verification( $comment_id ) : (bool) $verified;
}