Mlp_Term_Translation::get_public_url PHP Method

get_public_url() private method

Prepare the tax base before the URL is fetched
private get_public_url ( integer $term_id, string $taxonomy ) : string
$term_id integer
$taxonomy string
return string
    private function get_public_url($term_id, $taxonomy)
    {
        $changed = $this->fix_term_base($taxonomy);
        $url = get_term_link((int) $term_id, $taxonomy);
        if (is_wp_error($url)) {
            $url = '';
        }
        if ($changed) {
            $this->set_permastruct($taxonomy, $changed);
        }
        return $url;
    }