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/lyonmuller/custom-table-plugin/archive/refs/heads/main.zipUpdates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.
Custom Table Plugin
A WordPress plugin that creates a custom table, allows data insertion via a form, displays the data, and supports AJAX and REST API.
Features
- Custom database table
- Shortcode for data insertion form
- Shortcode for displaying data
- AJAX support for form submission
- REST API endpoints for data operations
Installation
1. Upload the plugin files to the /wp-content/plugins/custom-table-plugin directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Use the [customtableform] shortcode to display the form and [customtablelist] shortcode to display the data.
Shortcodes
- [customtableform] - Display the form for data insertion
- [customtablelist] - Display the data from the custom table
REST API Endpoints
- POST /wp-json/custom/v1/thing - Insert data
- GET /wp-json/custom/v1/things - Retrieve data
AJAX Support
The form submission is handled via AJAX for a seamless user experience. The JavaScript file responsible for this is located in assets/js/custom-table-plugin.js.
License
This plugin is licensed under the GPLv2 or later.
Changelog
1.0
- Initial release.