This plugin helps fetch the data in table format from endpoint with time intervals of one hour.
Have also added an option to override the one-hour limit and manually fetch the new data by clicking on a single button in the backend.
One can also override the hour limit using the WP CLI command since have also integrated WP CLI as well.
Have also created the facility to add table data in the frontend using shortcode inside any page.
For listing data, I have used WP List Table so that we can do further operations such as Sorting, Actions, Bulk Actions, etc.
- Upload the
wp-ajax-endpoint
folder to your/wp-content/plugins/
directory - Activate the plugin via the Plugins menu in WordPress
- Upon activation it will fetch the data in table format under admin menu WP Ajax Endpoint.
- You can click on Refresh Data button to override the hour limit and fetch new data.
Please do not try to match the content of table these screen was grab on different time intervals 😉
- Backend menu page.
Using Below command you can override the one-hour limit and manually fetch the new data. Setps to install WPCLi
wp wp-ajax-ept-reset
Below shortcode is used to display table data in frontend.
[wpajaxept]
- Have followed the defined WordPress coding standards
- All the Data is been Sanitized, Escaped, and Validated.
- Also have used Vanilla JS for frontend things to avoid using jQuery
- The plugin is compatible with WordPress version 4.9 and latest and PHP versions 5.6.0 and latest.
- The plugin is translation-ready.
- The plugin is licensed as GPL v2 or later.
- It is not accessible directly by browsing the plugin's directory.
**Happy Coding 😃**