Need a way to list all tables in admin
-
Hello, I’m looking for a way to retrieve all tables ID and names.
I need this to construct a metabox on a Custom Post Type edit page.With Wp Table Press I did :
global $WP_Table_Reloaded_Admin; foreach ( $WP_Table_Reloaded_Admin->tables as $id => $tableoptionname ): $table = $WP_Table_Reloaded_Admin->load_table( $id ); $name = $WP_Table_Reloaded_Admin->helper->safe_output( $table['name'] ); unset( $table ); if(in_array($id,$_liaison_tableau)): $selected = ' checked'; else: $selected = ''; endif; echo '<label><input type="checkbox" class="liaison_tableaux" value="'.$id.'"'.$selected.' />'.$name.'</label><br />'; endforeach;
How can I do now ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need a way to list all tables in admin’ is closed to new replies.