if (is_category() || is_tag() || is_tax()) {
            $term = $GLOBALS['wp_query']->get_queried_object();
            $output = $term->name;
        } elseif (!empty($id) && !empty($taxonomy)) {
            $terms = get_the_terms($id, $taxonomy);
            if (is_array($terms) && $terms !== array()) {
                foreach ($terms as $term) {
                    if ($return_single) {
                        $output = $term->name;
                        break;
                    } else {
                        $output .= $term->name . ', ';
                    }
                }
                $output = rtrim(trim($output), ',');
            }
        }
        unset($terms, $term);
        /**
         * Allows filtering of the terms list used to replace %%category%%, %%tag%% and %%ct_<custom-tax-name>%% variables
         * @api    string    $output    Comma-delimited string containing the terms
         */
        return apply_filters('YMBESEO_terms', $output);
    }
}
/* End of class YMBESEO_Replace_Vars */
/**
 * Setup the class statics when the file is first loaded
 */
YMBESEO_Replace_Vars::setup_statics_once();