WP Manifestindependent plugin directory
manifest / content / wp-job-listings-plugin

Job Listings using AJAX

A custom WordPress Plugin that manages job listings using custom database table.

by Srirupa · github.com/srirupa-m/wp-job-listings-plugin

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/srirupa-m/wp-job-listings-plugin/archive/refs/heads/main.zip

Readme

WordPress Job Listings Plugin A custom WordPress plugin that demonstrates AJAX CRUD operations using a custom database table instead of WordPress Custom Post Types.

  1. Overview : This project was built to demonstrate how to create a complete CRUD (Create, Read, Update, Delete) system in WordPress using : (a) Custom database tables (b) AJAX Requests with the Fetch API (c) WordPress nonces for security (d) Data sanitization and validation (e) Frontend rendering through a shortcode

All operation (add, edit, delete) happen without reloading the page.

  1. Features : (a) Custom Database Table created with dbDelta() (b) AJAX-based CRUD operations (c) Fetch API integration (d) WP Nonce verification (e) Data sanitization using WordPress functions (f) Frontend shortcode : [job_listings] (g) Responsive UI (h) Toast notifications

  2. Technologies Used : (a) PHP (b) MySQL (c) JavaScript (Fetch API) (d) HTML5 (e) CSS3 (f) WordPress Plugin API

  3. Folder Structure : wp-job-listings-plugin/ |--assets/ | |---css/style.css | |---js/script.js | |--includes/ | |---enqueue.php | |---database.php | |---ajax.php | |---frontend.php | |--screenshots/ | |---edit-job.png | |---empty-form.png | |---job-list.png | |---success-toast.png | |--uninstall.php |--README.md |--wp-job-listings.php

  4. Installation : (a) Activate the plugin from the WordPress dashboard (b) The custom database table will be created automatically (c) Add the shortcode [job_listings] to any page/post.

  5. Security Measures : (a) wp_verify_nonce() (b) sanitize_text_field() (c) sanitize_textarea_field() (d) esc_html() (e) esc_attr()

Author -- Srirupa Majumdar

Read the full README on GitHub →