How are table id’s stored in the database?
-
I’m trying to get the name of a table to use in my code. I use it in the admin backend for a filter. However, when I try to use tablepress_get_table_info() it says that the function is not defined. The same function works in the frontend, though. So I guess I can’t use it in WP Admin.
I thought I could try grabbing the title based on the table’s ID but I can’t find how this ID is stored in the database, and hence can’t find the WP post ID for use in get_the_title() as the table_id is not the same as post_id. I can find the posts in the wp_posts table but the only meta keys I can find in the wp_postmeta table are _tablepress_table_options and _tablepress_table_visibility. None of which seem to link the post id and the tablepress id…
Or is there another way to find the table name without tablepress_get_table_info()?
- The topic ‘How are table id’s stored in the database?’ is closed to new replies.