src/Wordpress/Wordpress.php
protected function getWPTaxonomies($options = [], $value = '')
    {
        // Build contents
        $contents = [];
        $contents[-1] = Translate::t('wordpress.choose.taxonomy', [], 'wordpressfield');

        // Build options
        $args = array_merge([
            'public' => 1
        ], $options);

        // Build request
        $taxs_obj = get_taxonomies($args);

        // Iterate on tags
        if (!empty($taxs_obj)) {
            foreach ($taxs_obj as $tax) {
                // Get taxonomy details
                $taxo = get_taxonomy($tax);

                // Get the id and the name
                $contents[0][$tax] = $taxo->labels->name.' ('.$taxo->name.')';
            }
        }

        // Return all values in a well formatted way
        return $contents;
    }
protected function getWPTaxonomies($options = [], $value = '')
    {
        // Build contents
        $contents = [];
        $contents[-1] = Translate::t('wordpress.choose.taxonomy', [], 'wordpressfield');

        // Build options
        $args = array_merge([
            'public' => 1
        ], $options);

        // Build request
        $taxs_obj = get_taxonomies($args);

        // Iterate on tags
        if (!empty($taxs_obj)) {
            foreach ($taxs_obj as $tax) {
                // Get taxonomy details
                $taxo = get_taxonomy($tax);

                // Get the id and the name
                $contents[0][$tax] = $taxo->labels->name.' ('.$taxo->name.')';
            }
        }

        // Return all values in a well formatted way
        return $contents;
    }
Get WordPress Taxonomies registered.

@uses get_taxonomies()
@uses get_taxonomy()

@param   array  $options     Define options if needed
@param   string $value       Define the value of each select options
@return  array  $wpcontents  Array of WordPress items