LifterLMS WPForms: Required Lesson Forms and Custom Sign-Up
Set up the LifterLMS WPForms add-on to require lesson forms and replace registration forms, understand what WPForms Lite and Pro change, and use…
Read articleIf your sales and marketing team lives in HubSpot, they will want to know who enrolled, who finished and who stalled. That is how you get renewal campaigns, upsell sequences and sales handoffs for B2B training.
LifterLMS does not have an official HubSpot add-on, and HubSpot does not read LifterLMS data by itself. A working LifterLMS HubSpot integration comes from one of three routes: WP Fusion, Zapier, or a custom integration with the HubSpot API. This guide compares them, explains how HubSpot's lists and properties shape the design, and shows a small, reliable code pattern for teams that want to own the connection.
HubSpot's official WordPress plugin is still useful for the tracking code and HubSpot forms on your marketing pages, but it has no LifterLMS-specific features.
| Route | Best for | Sync direction | Watch for |
|---|---|---|---|
| WP Fusion (third-party plugin) | Most course businesses that want segmentation and automations | Two-way, including enrolling from HubSpot | A paid licence, and a list design you need to plan |
| Zapier | A few simple flows, such as "new student creates a contact" | Mostly LifterLMS to HubSpot | Polling delays and per-task pricing |
| Custom API integration | B2B training, custom properties, deals and companies, high volume | Whatever you build | Code you maintain |
If you only need contacts created when people enroll, start with Zapier or WP Fusion. If HubSpot drives revenue reporting or sales workflows, it is worth designing the data properly first, whichever route you pick.
WP Fusion is a third-party plugin that connects WordPress to many CRMs, HubSpot included, and has a deep LifterLMS integration. Our WP Fusion and LifterLMS guide covers the LifterLMS settings in detail. Here is what matters specifically for HubSpot.
Most CRMs have tags. HubSpot does not, so WP Fusion uses HubSpot static lists in their place. WP Fusion can only add contacts to and remove them from static lists. HubSpot's active lists are maintained by HubSpot's own rules, so WP Fusion cannot change them. HubSpot allows a limited number of static lists per account, so if you would need a list for every course, lesson and quiz, WP Fusion can use a multi-select contact property for segmentation instead. The WP Fusion HubSpot setup guide explains both options.
WP Fusion's Link with Tag setting enrolls a student when a list membership is added and unenrolls them when it is removed. For HubSpot to tell WordPress about list changes, WP Fusion uses webhooks from HubSpot workflows. Be careful here: one workflow that removes contacts from a list can remove paying students from a course.
The LifterLMS Zapier app connects with a LifterLMS API key and offers triggers such as New Student, New Course, New Membership, Course Access Expired and Course Access Cancelled. On the HubSpot side, actions include Create or Update Contact, Add Contact to List and Create Deal. Zapier lists templates for creating HubSpot contacts from new LifterLMS students and enrollments on its LifterLMS and HubSpot integration page.
Zapier is fine for low-stakes flows such as "add new students to a nurture list". It checks for new LifterLMS data on a schedule, so it is not instant, and costs grow with volume. It also does not cover course completion out of the box, which is often the event sales teams care most about. A LifterLMS webhook on progress.updated sent to a Zapier webhook trigger can fill that gap. See LifterLMS Zapier automations for the setup.
A custom integration makes sense when you need things the connectors do not do well: custom contact properties for each programme, associating contacts with companies for B2B seats, creating deals when a trial ends, or logging every sync for audit.
llms_user_enrolled_in_course, lifterlms_course_completed, lifterlms_access_plan_purchased, and the enrollment removal hooks./crm/v3/objects/contacts/batch/upsert, which updates a contact if the email exists and creates it if not. HubSpot documents it in its contacts API guide.wp-config.php, never in the database or code repository.This sketch records the most recent course a student enrolled in on a custom HubSpot contact property called lms_last_enrolled_course. Create that property in HubSpot first, and define LLMSX_HUBSPOT_TOKEN in wp-config.php.
// 1. Queue a background job when a student enrolls.
add_action( 'llms_user_enrolled_in_course', 'llmsx_queue_hubspot_enrollment', 10, 2 );
function llmsx_queue_hubspot_enrollment( $user_id, $course_id ) {
as_enqueue_async_action( 'llmsx_hubspot_sync_enrollment', array( $user_id, $course_id ), 'llmsx' );
}
// 2. Upsert the contact in HubSpot.
add_action( 'llmsx_hubspot_sync_enrollment', 'llmsx_hubspot_sync_enrollment', 10, 2 );
function llmsx_hubspot_sync_enrollment( $user_id, $course_id ) {
$user = get_userdata( $user_id );
if ( ! $user || ! defined( 'LLMSX_HUBSPOT_TOKEN' ) ) {
return;
}
$body = array(
'inputs' => array(
array(
'idProperty' => 'email',
'id' => $user->user_email,
'properties' => array(
'email' => $user->user_email,
'firstname' => $user->first_name,
'lastname' => $user->last_name,
'lms_last_enrolled_course' => get_the_title( $course_id ),
),
),
),
);
$response = wp_remote_post(
'https://api.hubapi.com/crm/v3/objects/contacts/batch/upsert',
array(
'timeout' => 15,
'headers' => array(
'Authorization' => 'Bearer ' . LLMSX_HUBSPOT_TOKEN,
'Content-Type' => 'application/json',
),
'body' => wp_json_encode( $body ),
)
);
$code = wp_remote_retrieve_response_code( $response );
if ( is_wp_error( $response ) || $code < 200 || $code >= 300 ) {
// Throwing marks the scheduled action as failed, so it is visible
// under LifterLMS > Status > Scheduled Actions.
throw new Exception( 'HubSpot sync failed for user ' . $user_id . ': ' . wp_remote_retrieve_body( $response ) );
}
}
In production you would add completion and unenrollment events, map more fields, and add a nightly job that compares LifterLMS enrollments with HubSpot so nothing is missed. The same structure works for creating deals or associating the contact with a company.
If you would rather not write PHP, a LifterLMS webhook sent to n8n or Make can call the same HubSpot endpoint. Our guide to LifterLMS with Make and n8n shows that pattern.
Whatever the route, decide these before you sync anything:
lms_ properties and "LMS - Course name - Completed" lists, so your marketing team can tell LMS data from everything else.wp-config.php or an environment variable, with the narrowest scopes that work.No. Use WP Fusion, Zapier or a custom integration built on LifterLMS hooks and the HubSpot API.
Yes, through WP Fusion's Link with Tag setting with HubSpot workflows, through a Zapier action that enrolls a user, or through the LifterLMS REST API from a custom integration.
Yes, if you send them. WP Fusion applies lists or fields on completion. A custom integration can update a property from the lifterlms_course_completed hook.
Not if API calls run in the background. WP Fusion and a well-built custom plugin both avoid blocking the student's request.
Write down the three or four LMS events your HubSpot users actually act on, usually new student, course completed, access cancelled and maybe a deal stage for B2B. If WP Fusion covers them, use it. If you need companies, deals, custom properties or an audit trail, plan a custom integration.
Our LifterLMS integrations service builds and maintains HubSpot connections, from WP Fusion configuration to custom API syncs. Tell us how your team uses HubSpot and we will recommend the right route.
Set up the LifterLMS WPForms add-on to require lesson forms and replace registration forms, understand what WPForms Lite and Pro change, and use…
Read article
LifterLMS does not import SCORM packages natively. Here is what SCORM and xAPI support looks like with third-party plugins, what you gain and lose…
Read article
How to add H5P interactive videos, drag and drop tasks and branching scenarios to LifterLMS lessons, and three ways to connect H5P results to lesson…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.