Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/srirupa-m/wp-job-listings-plugin/archive/refs/heads/main.zipWordPress Job Listings Plugin A custom WordPress plugin that demonstrates AJAX CRUD operations using a custom database table instead of WordPress Custom Post Types.
- 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.
-
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
-
Technologies Used : (a) PHP (b) MySQL (c) JavaScript (Fetch API) (d) HTML5 (e) CSS3 (f) WordPress Plugin API
-
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
-
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.
-
Security Measures : (a) wp_verify_nonce() (b) sanitize_text_field() (c) sanitize_textarea_field() (d) esc_html() (e) esc_attr()
Author -- Srirupa Majumdar