get_terms( array|string $args = array(), array|string $deprecated = ” ): WP_Term[]|int[]|string[]|string|WP_Error Retrieves the terms in a given taxonomy or list of taxonomies. Description You can fully inject any customizations to the query before it is sent, as well as control the output with a filter. The return type varies depending on the value passed to $args['fields']. See WP_Term_Query::ge