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
| Field | Rule | Error Message |
|---|---|---|
| Student Name | Required | "Student's name is required." |
| Date of Birth | Required | "Date of birth is required." |
| Gender | Required | "Gender is required." |
| Valid email | "A valid guardian email address is required." | |
| ID Card Number | Required + 13 digits | "ID card number must be a 13-digit number without dashes." |
| Guardian Name | Required | "Guardian's name is required." |
| Contact | At least one | "At least one contact number (Father or Mother) is required." |
| Class | Required | "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 Key | Description |
|---|---|
_ik_student_class_id | Applied class |
_ik_date_of_birth | Student DOB |
_ik_gender | Gender |
_ik_email | Guardian email |
_ik_cnic_number | ID card number |
_ik_guardian_title | Mr./Mrs./Ms. |
_ik_guardian_name | Guardian full name |
_ik_father_contact | Father's phone |
_ik_mother_contact | Mother's phone |
_ik_father_occupation | Father's job |
_ik_mother_occupation | Mother's job |
_ik_father_qualification | Father's education |
_ik_mother_qualification | Mother's education |
_ik_address | Home address |
_ik_emergency_contact | Set 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:
- Review application details
- Click "Approve"
- Student created as
ik_studentpost type - Application marked as processed
- 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
| Feature | Implementation |
|---|---|
| Nonce Protection | wp_verify_nonce('ik_submit_admission', 'ik_admissions_nonce') |
| Input Sanitization | All fields sanitized before storage |
| Email Validation | is_email() check |
| ID Card Validation | Regex: /^\d{13}$/ (13 digits, no dashes) |
| SQL Injection | All DB operations use $wpdb->prepare() |

Comments are closed.