Comments aliabbasjp started the conversationApril 19, 2017 at 2:52pmI need to fetch a a whole datatable with changing content from an api, the content is fetched based on some input. Mysql is not an option as the query is fixed in mysql. The API enpoint will send whole tables so how to render it as datatable?[deleted] repliedApril 20, 2017 at 11:07amHi aliabbasjp,Thank you for the purchase.You can take a look at actions and filters that you can hook on this links - Filters - Actions.Maybe something like this is what you need:wpdatatables_filter_rendered_table( $table_content, $table_id )This filter is applied to the rendered table HTML. $table ID is the table identifier from the database. Sign in to reply ...
I need to fetch a a whole datatable with changing content from an api, the content is fetched based on some input. Mysql is not an option as the query is fixed in mysql. The API enpoint will send whole tables so how to render it as datatable?
Hi aliabbasjp,
Thank you for the purchase.
You can take a look at actions and filters that you can hook on this links - Filters - Actions.
Maybe something like this is what you need:
wpdatatables_filter_rendered_table( $table_content, $table_id )
This filter is applied to the rendered table HTML. $table ID is the table identifier from the database.