Custom Table Plugin
A plugin that creates a custom table, allows data insertion via a form, and displays the data with search functionality.
by Lyon Müller · github.com/lyonmuller/custom-table-plugin · website
★ 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/lyonmuller/custom-table-plugin/archive/refs/heads/main.zipDeclares an update source (https://plugins.lyon.dev/custom-table-plugin/update), so updates arrive through the plugin's own updater.
From the readme
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.