I'm using TablePress to make some backend tables. What I want to do is show these tables in a different admin menu than the TablePress menu, because they'll be available to lower user groups.
So I found out how to create a custom menu and in that menu I have custom pages. In these pages I would like to show the shortcode
[table id=1 /] (a table that has already been created).
echo do_shortcode('[table id=1 /]');
but that just shows
[table id=1 /].
The plugin uses
add_shortcode( 'table', array( $this, 'shortcode_table' ) );
so I can't use directly the shortcode callback because I've no access to
$this variable outside the object (the object class is
In addition, looking at plugin files, I've noticed one called
template-tag-functions.php that contains a function
tablepress_print_table. However this function, just like shortcode, works on frontend but not on backend (throwing an error).
What is the best way to solve this?