wp_enqueue_script and custom TablePress settings
-
Hi Tobias,
I finished the backup plugin (I have 21 buttons already with scheduling auto backup for kkstar ratings as well ;D). It need some more testing of course but all buttons work fine.
But now I want make some more corrections in my custom template for wordpress website. I want to use
wp_enqueue_scriptfor custom TablePress sort settings. Before I had HTML entry with my custom TablePress file just before footer close tag. The sort depends on datatables. Sojquery.datatables.min.jsneed to be loaded before custom TablePress sort settings.I saw that in TablePress plugin (
controller-frontend.phpfile) the filejquery.datatables.min.jsis enqueued with handletablepress-datatables.Now when I set dependencies of
tablepress-datatableseverything works fine and my custom TablePress settings is loaded just after thejquery.datatables.min.js.It that correct? The handle
tablepress-datatableswill not change in the future? Maybe it will be more safe back to the old solution and place it in HTML link tag just before footer?Regards,
Darek
The topic ‘wp_enqueue_script and custom TablePress settings’ is closed to new replies.