method_get_term_array()
method_get_term_array( $tax, $none = '' )
Gets an associative array of term IDs and names for a taxonomy.
Description
Retrieves all terms for the specified taxonomy and returns them as an associative array suitable for select fields.
Parameters
$tax (string) :
The taxonomy slug (e.g., 'category', 'post_tag').
$none (string) :
Optional label for a “none” option at key 0.
Return
(array) Associative array of term_id => name.
Source
File: lib/helper-functions.php