(int) $comment_id, 'user_ID' => (int) $comment->user_id, 'user_name' => $comment->comment_author, 'user_email' => sanitize_email( $comment->comment_author_email ), 'user_avatar_url' => get_avatar_url( $comment->user_id ), 'date_created' => $comment->comment_date, 'IP_address' => $comment->comment_author_IP, 'content' => (string) $comment->comment_content, 'approved' => $comment->comment_approved, 'agent' => $comment->comment_agent, 'type' => (string) $comment->comment_type, 'parent' => (int) $comment->comment_parent, 'rating' => (int) $rating, '_course' => Payload::get_course_data( $comment_post_id ), ); return apply_filters( 'academy_webhooks/course_review_payload', $data ); } }