public function check_comment_author_email( $value,
$request,
$param ) { $email =
(string) $value;
if ( empty( $email ) ) { return $email;
} $check_email =
rest_validate_request_arg( $email,
$request,
$param );
if ( is_wp_error( $check_email ) ) { return $check_email;
} return $email;
} /**
* If empty comments are not allowed, checks if the provided comment content is not empty.
*
* @since 5.6.0
*
* @param array $prepared_comment The prepared comment data.
* @return bool True if the content is allowed, false otherwise.
*/