I have a plugin that does this:
It has a query like $query = ‘SELECT * FROM users’
That query gives me the results like:
$result = $wpdb->get_results($query, ARRAY_A);
With $results I build a table.
Now, I want to have that table to become a DataTables table.
Where can I apply the shortcode?
If the shortcode does not work, then how can I instanciate your plugin?