shortcode_name = 'adminz_term_field'; $xxx->shortcode_title = 'Uxbuilder term field'; $xxx->shortcode_icon = 'text'; $xxx->shortcode_type = 'container'; $xxx->shortcode_compile = false; $options = [ 'term_field' => [ 'type' => 'select', 'heading' => 'Select Field', 'default' => 'term_title', 'options' => [ 'term_id' => 'term_id', 'name' => 'name', 'slug' => 'slug', 'term_group' => 'term_group', 'term_taxonomy_id' => 'term_taxonomy_id', 'taxonomy' => 'taxonomy', 'description' => 'description', 'parent' => 'parent', 'count' => 'count', 'filter' => 'filter', ], ], ]; $options = array_merge( $options, require ADMINZ_DIR . "includes/shortcodes/inc/flatsome-element-advanced.php", ); $xxx->options = $options; $xxx->shortcode_callback = function ($atts, $content = null) { $atts = shortcode_atts( array( "term_field" => "name", 'css' => '', 'class' => '', 'visibility' => '', ), $atts, ); $classes = array(); if (!empty($atts['class'])) $classes[] = $atts['class']; if (!empty($atts['visibility'])) $classes[] = $atts['visibility']; if ($atts['visibility'] == 'hidden') { return; } ob_start(); ?>