Academy LMS 4.0 IS LIVE

00
Days
:
00
Hours
:
00
Minute
:
00
Second

Student registration shortcode

The Student Registration shortcode ([academy_student_registration_form]) renders a self-serve sign-up form that lets a site visitor create a student account, without going through the WordPress default registration screen. It is a classic (non-block) shortcode, so it can be added by pasting the raw shortcode text into any page or post.

How to access

1.Go to Pages > Add New (or edit an existing page).
2.Add a Shortcode or Paragraph block and type [academy_student_registration_form].
3.Click Publish and view the page on the frontend as a logged-out visitor.
Student registration form as seen by a logged-out visitor

Log out (or open the page in a private window) before checking the result — the shortcode renders differently for a visitor who is already logged in, as described below.

Field breakdown

For a logged-out visitor, the shortcode renders a registration form with these fields:

Email — the applicant’s email address (used as their account identifier).
Password — the account password.
Confirm Password — password confirmation field.
Register As Student — submit button that creates the student account and logs the new user in.

On the free version of the plugin, the form fields are limited to email, password, and confirm password. Academy Pro extends this form with additional profile fields via its own field configuration.

Behavior by visitor state

Logged-out visitor — sees the registration form shown above.
Logged-in user — instead of the form, the shortcode shows a “you are logged in” message with a link to their frontend dashboard, rather than a redundant registration form.

This is controlled by AcademyRegistration::student_registration_form() in includes/shortcode/academy-registration.php, which checks is_user_logged_in() (filterable via the academy/shortcode/student_registration_form_is_user_logged_in hook) and swaps between the shortcode/student.php template and the shortcode/logged-in-student.php template accordingly.