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

        // Build options
        $args = array_merge([], $options);

        // Build request
        $tags_obj = get_the_tags();

        // Iterate on tags
        if (!empty($tags_obj)) {
            foreach ($tags_obj as $tag) {
                // Check value
                $item = !empty($value) && isset($tag->$value) ? $tag->$value : $tag->term_id;

                // Get the id and the name
                $contents[0][$item] = $tag->name;
            }
        }

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

        // Build options
        $args = array_merge([], $options);

        // Build request
        $tags_obj = get_the_tags();

        // Iterate on tags
        if (!empty($tags_obj)) {
            foreach ($tags_obj as $tag) {
                // Check value
                $item = !empty($value) && isset($tag->$value) ? $tag->$value : $tag->term_id;

                // Get the id and the name
                $contents[0][$item] = $tag->name;
            }
        }

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

@uses get_the_tags()

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