A WordPress plugin that creates a custom table, allows data insertion via a form, displays the data, and supports AJAX and REST API.
- Custom database table
- Shortcode for data insertion form
- Shortcode for displaying data
- AJAX support for form submission
- REST API endpoints for data operations
- Upload the plugin files to the
/wp-content/plugins/custom-table-plugin
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Use the
[custom_table_form]
shortcode to display the form and[custom_table_list]
shortcode to display the data.
[custom_table_form]
- Display the form for data insertion[custom_table_list]
- Display the data from the custom table
- POST
/wp-json/custom/v1/thing
- Insert data - GET
/wp-json/custom/v1/things
- Retrieve data
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
.
This plugin is licensed under the GPLv2 or later.
- Initial release.
Use the [custom_table_form]
shortcode in your post or page.
Use the [custom_table_list]
shortcode in your post or page.
Yes, the plugin supports AJAX for form submission to provide a seamless user experience.
You can use the following endpoints:
- POST /wp-json/custom/v1/thing to insert data
- GET /wp-json/custom/v1/things to retrieve data