This can be done with some custom work. For example, you can create a custom button, and create a custom script that will make the ajax call after the button is clicked, and in the backend, it will execute our shortcode.
There are a lot of examples for this online, but here's one of them:
Hey guys,
does anybody know, how would it be possible to load a wpdatatable only after click on some button and not at page load to save loading time?
Thank you for suggestions
Hey Miroslav.
This can be done with some custom work. For example, you can create a custom button, and create a custom script that will make the ajax call after the button is clicked, and in the backend, it will execute our shortcode.
There are a lot of examples for this online, but here's one of them:
https://stackoverflow.com/questions/35679424/is-there-a-way-to-load-a-shortcode-onclick-event-in-javascript
I hope that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables