Frontend Admission Form

Last Updated: 2026-05-27 | Applies to: IK v1.2+ | Role: Administrator

Overview

The Frontend Admissions Manager allows parents/guardians to submit admission applications directly from your website. Applications are stored as a custom post type and can be reviewed by administrators.

Setting Up the Admission Page

Step 1: Create a WordPress Page

Page Title: Apply for Admission
Slug: apply-for-admission
Content: [ik_admission_form]
Template: Full-width

Step 2: Make it Accessible

Add to your main navigation menu or create a prominent button on your homepage.

Admission Form Fields

The form collects comprehensive information:

┌──────────────────────────────────────────────────────────┐
│ STUDENT ADMISSION FORM │
├──────────────────────────────────────────────────────────┤
│ STUDENT INFORMATION │
│ ┌────────────────────────────────────────────────────┐ │
│ │ Student's Full Name: [___________________________] │ │
│ │ Date of Birth: [__________] │ │
│ │ Gender: [Male ▾ / Female / Other] │ │
│ └────────────────────────────────────────────────────┘ │
│ │
│ GUARDIAN INFORMATION │
│ ┌────────────────────────────────────────────────────┐ │
│ │ Guardian Title: [Mr. ▾ / Mrs. / Ms. / Dr.] │ │
│ │ Guardian Name: [___________________________] │ │
│ │ Email: [___________________________] │ │
│ │ ID Card Number: [___________________________] │ │
│ │ (13-digit without dashes) │ │
│ └────────────────────────────────────────────────────┘ │
│ │
│ PARENT DETAILS │
│ ┌────────────────────────────────────────────────────┐ │
│ │ Father's Contact: [________________] │ │
│ │ Mother's Contact: [________________] │ │
│ │ Father's Occupation: [________________] │ │
│ │ Mother's Occupation: [________________] │ │
│ │ Father's Education: [________________] │ │
│ │ Mother's Education: [________________] │ │
│ └────────────────────────────────────────────────────┘ │
│ │
│ ADMISSION DETAILS │
│ ┌────────────────────────────────────────────────────┐ │
│ │ Applying For Class: [Select Class ▾] │ │
│ │ Address: [___________________________] │ │
│ └────────────────────────────────────────────────────┘ │
│ │
│ [Submit Application] │
└──────────────────────────────────────────────────────────┘

Form Validation Rules

FieldRuleError Message
Student NameRequired"Student's name is required."
Date of BirthRequired"Date of birth is required."
GenderRequired"Gender is required."
EmailValid email"A valid guardian email address is required."
ID Card NumberRequired + 13 digits"ID card number must be a 13-digit number without dashes."
Guardian NameRequired"Guardian's name is required."
ContactAt least one"At least one contact number (Father or Mother) is required."
ClassRequired"Please select a class to apply for."

What Happens After Submission

1. Application Stored

Applications are saved as ik_admission_app custom post type:

Post Type: ik_admission_app
Post Title: Student's Name
Post Status: publish (visible in admin)

2. Meta Data Saved

All form fields are stored as post meta:

Meta KeyDescription
_ik_student_class_idApplied class
_ik_date_of_birthStudent DOB
_ik_genderGender
_ik_emailGuardian email
_ik_cnic_numberID card number
_ik_guardian_titleMr./Mrs./Ms.
_ik_guardian_nameGuardian full name
_ik_father_contactFather's phone
_ik_mother_contactMother's phone
_ik_father_occupationFather's job
_ik_mother_occupationMother's job
_ik_father_qualificationFather's education
_ik_mother_qualificationMother's education
_ik_addressHome address
_ik_emergency_contactSet to father's contact

3. Success Redirect

After successful submission:

https://yourschool.com/apply-for-admission/?admission-success=true

Show a success message:

✅ Thank you! Your application has been submitted successfully.
We will review your application and contact you shortly.

Admin Review Process

Where to find applications:

Navigate to: Student Management → New Admission

Applications appear as a list:

┌──────────────────────────────────────────────────────────┐
│ Pending Admission Applications │
├──────────┬──────────────┬──────────┬──────────┬─────────┤
│ Student │ Guardian │ Class │ Date │ Actions │
├──────────┼──────────────┼──────────┼──────────┼─────────┤
│ John Doe │ Mr. Robert │ Grade 5 │ Jun 15 │ [Approve]│
│ Jane S. │ Mrs. Sarah │ Grade 3 │ Jun 14 │ [Approve]│
└──────────┴──────────────┴──────────┴──────────┴─────────┘

Approval Process:

  1. Review application details
  2. Click "Approve"
  3. Student created as ik_student post type
  4. Application marked as processed
  5. Confirmation email sent to guardian

Customizing the Form Template

The form uses a template file:

includes/frontend/templates/admission-form-template.php

You can override this by creating:

your-theme/institutionkit/admission-form-template.php

Security Features

FeatureImplementation
Nonce Protectionwp_verify_nonce('ik_submit_admission', 'ik_admissions_nonce')
Input SanitizationAll fields sanitized before storage
Email Validationis_email() check
ID Card ValidationRegex: /^\d{13}$/ (13 digits, no dashes)
SQL InjectionAll DB operations use $wpdb->prepare()

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
💬 Ask Me Anything!