get_terms does indeed fetch from the terms table, but it does also use a join on the taxonomy table, since you need to specify which taxonomies you want terms for in your get_terms query.
If you want to get all terms, you could use something like:
$all_terms = get_terms([
'taxonomy' => get_taxonomies(),
'hide_empty' => false,
]);
Related Posts:
- Slow wp_term_relationships query
- Is altering a default WordPress database table update safe?
- get_tags() return an empty array after added tags with wp_insert_term()
- What does wp_term_taxonomy.parent reference?
- Clear Terms from Taxonomy for Specific Post IDs?
- What is the purpose of the “term_id” column in the “wp_term_taxonomy” table?
- get_the_terms is not working
- Is it fine to have foreign key as primary key?
- Detecting errors generated by $wpdb->get_results()
- Custom form that store input in database
- Restoring WordPress posts from database only
- Can a post ID be 0?
- Issue with wp_insert_post and post_content field error Could not update post in the database
- wp_posts – guid update
- Performance Gains of Relational DB Setup
- what is the wp_5_posts table in the database?
- Migrating data between local and development server
- WordPress Database Charset/Collate
- store simple data in get_option()
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- BuddyPress: What’s the use of wp_bp_xprofile_data table and how does it get updated? [closed]
- storing database in version control
- Is deleting orphaned wp_options entries safe?
- How to build a movie database with wordpress?
- Sub-domain or 2nd, temporary different domain?
- Delete all post meta except featured image
- Where is custom template file chosen for a post stored in the DB?
- How do i get user data from a custom table in the wordpress database by user ID?
- Converting WordPress into Android or iPhone app
- Safe way to find last inserted id in a table?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Database slowdown after update to 3.4.1
- WooCommerce sku location in DB
- How to insert data into MySQL database from the form created in WordPress site
- WordPress DATABASE Update Manually?
- I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?
- Multiple postmeta with same name for one post in wp_postmeta table
- Which is more efficient? Using usermeta, or creating a new MySQL table?
- Can I have multiple database users within WordPress?
- Modify Database in Multi-Site wp_usermeta table
- Structure of postmeta meta_value for woocommerce product download
- $wpdb doesn’t like to store arrays
- Connect to a remote database for wordpress in my own hosting server
- How to replicate a user plugin made table value, to this user’s custom meta table value?
- WordPress ‘repairing database’ in a constant error loop?
- What Is the Proper Way to Merge Usermeta Table to a an existing WP Database?
- Importing CSV into database table not working?
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- Importing 10 Years of Media into the WP Database
- How to get nav_menu_item_id and slug from wp database
- connecting to DB from custom php file
- Is there a way to execute a php script outside WordPress?
- Make changes of wp-db.php file persistent against updates
- How can I restrict php mail() to only send me one email after a db error
- pull data from a remote wordpress database
- Change the default data installed when setting up WordPress
- How to delete post comments from the database via SQL statement?
- Why does changing Database Table Prefixes result in loss of content?
- How to connect and insert data in database of wordpress?
- How to split the WordPress database?
- $wpdb->get_var – What value is returned when zero records are found?
- wp_option table error while importing
- SymmetricDS in dev + prod workflow?
- Fixing YARPP plugin FULLTEXT MySQL indexing
- What is wrong here? Issue with post_id and meta_value
- $wpdb->insert not inserting all rows
- Best Practice? – Saving multiple Values as Serialized Data / Saving each Value per Row / Dedicated Table
- Insert NULL value using prepare()
- How to re-connect WP files in lampp/htdocs to new SQL database to recover site under development
- How can I find user role in Mysql?
- How would I see which wordpress posts have a revision history without opening each one?
- Troubles when I want to connect to another DB
- Intermittent Yet Problematic Error – “Error Establishing A Database Connection”
- Communication in between WordPress database and another (not WordPress) database
- Is it possible to separate databases in WordPress site – one for orders and the other for all non-orders related
- Featured image from custom to WordPress database
- WordPress Database Query works in phpMyAdmin but not in the code
- Error: SHOW FULL COLUMNS FROM `pt_participant`
- Delete all users meta that named: user_avatar
- How to save dropdown slection by a user in the DB
- Accessing Information From Vendor Database On The Basis Of Customer Query
- spambot registering without providing email or password, bypassing registration process
- Connection of mysql DB with wordpress
- Locally installing wordpress. Database problem
- I have my full special database from xampp how can i use this on wordpress?
- Widgets with *internal* links do not display after database migration
- Options table – where does my values go?
- WordPress ERD mistake?
- Copy site on same server?
- Changing database links has no effect
- How to use remote db tables in current config? [duplicate]
- How to solve notorious ‘Error Establishing a Database Connection’ [closed]
- WordPress can’t fetch the posts from the database after moving to new server [closed]
- why you don’t Implement PDO for access every thing to database
- Restrict users viewing post using age on database [closed]
- What’s the cleanest way to transfer WordPress to a new server
- Display custom data based on URL slug
- How to protect my credentials on my clients website
- How to disable publish_future_post auto add wp_options cron
- I have uploaded thousands of files in the uploads folder via FTP and I want to register them into the database without any plugin