🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 21, 2026

How to Enroll Students in LearnPress Courses with Gravity Forms

GravityExtra
How to Enroll Students in LearnPress Courses with Gravity Forms

An online school lives or dies at the front door. A visitor reads about a course, decides to join, and then meets a registration page, a login page and a checkout page in a row. Every extra step loses people. LearnPress gives you the courses, the lessons, the quizzes and the student records. What it does not give you is a flexible sign-up form that can ask your own questions, take a payment with the tools you already use and then enroll the student in the right course without anyone doing it by hand.

This guide shows how to use Gravity Forms as the enrollment form of a LearnPress school. The form can create the student account, enroll the student in one course or several, list your courses with their price, and, when the student finishes a course, ask for feedback or a certificate request. It uses the Gravity Forms Course Enrollment Premium Add-on by GravityExtra and the free LearnPress plugin.

A Gravity Forms enrollment form with first name, last name, email and a course drop down filled with LearnPress courses and their price, such as Portrait Lighting Masterclass ($49.00) and Photography Basics (Free)
A form whose course list is filled by the add-on, with the price of each course.

Why Use Gravity Forms With LearnPress

LearnPress has its own enrollment button and its own checkout, and both do their job. Trouble starts when your school needs something different. You want a short application form before a student joins a cohort. You sell a bundle of two courses with one payment. You run a free taster course from a landing page and want the visitor to leave only a name and an email. You want to enroll a whole class from a form that a teacher fills in. A partner company pays for a group, and each member should get an account.

Gravity Forms already solves the form part. Fields, validation, conditional logic, file uploads, payments, notifications and entry storage are all there, and many sites use it already. What was missing is the bridge: a way to say that this form enrolls the sender in that course, that this choice field lists the courses, and that this other form should get an entry when a student graduates.

What You Need

  • WordPress with Gravity Forms 2.9 or newer.
  • The free LearnPress plugin from WordPress.org, version 4.2.7 or newer, with at least one published course.
  • The Gravity Forms Course Enrollment Premium Add-on and its license key.

Step 1: Create the Form

Build the form the way you build any form. For a sign-up you need an email field and, usually, a name. You can add a username and a password field if you want students to choose their own. Add whatever your school needs to know: a phone number, a level, the reason for joining. These answers stay in the Gravity Forms entry.

If the student should pick the course, add a drop down, radio buttons or check boxes field and call it Course. You do not have to type the choices. The add-on can fill the field with your published courses.

Step 2: Add the Enrollment Feed

Open the form, choose Settings, then Course Enrollment, and add a feed. Keep the action on Enroll in LearnPress course(s) when the form is submitted. Map the email, the first name and the last name. Leave the username and the password empty if you want the add-on to build the username and the student to set a password from the standard WordPress e-mail.

The Enroll in LearnPress course(s) feed settings in Gravity Forms: who is enrolled, account field mapping, the course source, start and order total, and the field that lists the courses
The enrollment feed: who is enrolled, which courses and how the course starts.

Then choose where the courses come from. For a landing page with one free course, tick that course in the list. For a form where the student chooses, switch the source to a choice field and pick the Course field. Under Course choices, pick the same field to have it filled with your courses and their prices, for example Portrait Lighting Masterclass ($49.00) next to Photography Basics (Free).

Step 3: Decide How the Course Starts

LearnPress has a setting called Auto start. The add-on respects it, and also lets you override it. With Start the course at once on, the student can open the first lesson right after the form. With it off, a course that costs money is added as purchased and the student starts it in LearnPress, exactly as after a normal purchase. The order total setting decides what LearnPress records: nothing, for a free form, or the price of the courses, for a form that took the payment.

Why the Add-on Uses a LearnPress Order

This is the part that matters most for the long term. LearnPress enrolls a student when an order is completed. Writing a course record by hand would skip the order, the e-mails, the statistics and the hooks that other plugins rely on. So the add-on creates a real order, adds the courses and completes it. LearnPress then creates the course records, fires its enrolled hook and queues its own enrolled e-mails. The order shows in the LearnPress orders list as completed, with Gravity Forms as the payment method, and it keeps the number of the entry, so you can always trace where an enrollment came from.

Safety Rules for Accounts

A form that creates accounts needs firm limits, so the add-on has several. It never changes an existing account. If a visitor types the email of someone who already has an account, the default is to refuse and write an error note. You can choose to enroll that account instead, and then the account only gains the course: its name, password and role stay as they were. A new account gets the role you choose, and the list never offers a role that can manage users or the site, so a form can never create an administrator, even if a feed is edited by mistake.

Courses are checked too. Only published courses can be enrolled. A course outside the list you ticked is ignored. A course that costs money and is picked by the student in a field is enrolled only when the entry is paid, so nobody can change a value in the browser and get a paid course for free. A student who already has the course is not enrolled twice, and a finished course is not re-opened.

Step 4: Take Payments

The add-on does not take money. Use any Gravity Forms payment add-on, and on the Course Enrollment feed turn on the option to enroll only when the payment is completed. The student then gets the account and the course once, when the payment add-on releases the feed, and not when the form is only sent. If the payment fails, nothing is created. Set the order total to the price of the courses so the LearnPress statistics match your income.

Step 5: Confirm With Merge Tags

Gravity Forms confirmations and notifications can use five new merge tags: the course title, the course link, the course id, the course price and the student username. A confirmation such as You are enrolled in the course title. Open it here: the course link, gives the student a direct way into the course. With several courses the values are separated by commas.

Step 6: Do Something When a Student Finishes

Enrollment is only half of the story. The moment a student finishes a course is the best time to ask for a review, offer the next course or send a certificate. Add a second feed to another form and choose When a LearnPress course is finished. This feed does not run when its form is sent. It runs when LearnPress reports that a student finished a course.

The When a LearnPress course is finished feed settings in Gravity Forms: courses, result, add an entry, send notifications and the entry field mapping for the course title, result, score and date
The finished-course feed turns a result into an entry or a notification.

Choose the courses it reacts to, or leave them all unticked. Choose whether it reacts to any result, only to students who passed, or only to students who failed. Then choose what it does. It can add an entry to the form for the student, with the name, email, course title, result, score and date filled in, so your feedback form or certificate request starts half complete. It can also send the notifications of that form whose event is LearnPress: course finished, for example a congratulation message with the link to the feedback form. A feed for failed students can offer a retake, while a feed for passed students can offer the advanced course.

Real Examples

  • Free taster course. A landing page form with a name and an email. The feed enrolls the visitor in the taster at once, and the confirmation links to the first lesson.
  • Paid course with a payment add-on. A course field filled by the add-on, a payment field, and the option to enroll when the payment is completed.
  • Bundle. A form that enrolls in two courses from a fixed list, in one order, with the order total set to the bundle price.
  • Teacher enrolls a class. A form for logged-in teachers, sent once for each student, with the always-new-account setting.
  • Certificate request. A form with a finished feed for one course and the passed only filter. The student gets a notification and the entry waits in your inbox.

What to Check Before You Go Live

  1. Send the form as a visitor and open the entry. The notes list every step, with the account, the courses and the LearnPress order number.
  2. Open the LearnPress orders list and check the new order, which should be completed.
  3. Log in as the new student and open the course.
  4. Finish a test course and check that the finished feed made its entry or sent its notification.
  5. Send the form with the email of an existing account and check that the add-on refuses it, or enrolls only the course, as you chose.

The forms are normal Gravity Forms forms, so they work on a phone, in a block, with AJAX and with the other add-ons you already use. Everything runs on your own site. The add-on makes no outside requests, and LearnPress sends its e-mails through the same mailer as the rest of your site.

Frequently Asked Questions

Does this work with the free LearnPress plugin?

Yes. The add-on was tested with the free LearnPress plugin from WordPress.org, and no paid LearnPress extension is needed.

Can I use it for a membership site?

You can enroll members in the courses that come with their plan by running the feed after the payment. Managing the membership itself is the job of your membership or payment plugin.

What happens if LearnPress is switched off?

A notice appears in the admin, the feeds write an error note on the entry and nothing is created. When LearnPress is active again, the feeds work as before.

Gravity Forms for your LearnPress school

Enroll students, list courses with prices and follow up when a course is finished.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr