Function:
mp_core_get_all_terms_by_tax()
Purpose:
Get all Posts by a certain taxonomy
Overview:
Use this function when you need to know all the terms that would be in a given taxonomy. For example, if you have a taxonomy called “T-shirt Colors” and you want to know all of the colors, this would give you that. The terms are created by the website operator when creating posts. The taxonomy is built into the plugin itself.
Usage:
mp_core_get_all_terms_by_tax();
Parameters:
(string) (required) The slug of the taxonomy in which to check the terms.
Returns:
(Array)
An array with all the terms in a given taxonomy structured with the key as the term ID and the value as the Term Name