Mlp_Term_Translation_Presenter::get_term_from_site PHP Method

get_term_from_site() private method

Return the term object for the given term ID and the current site.
private get_term_from_site ( integer $term_id ) : object
$term_id integer Term ID.
return object
    private function get_term_from_site($term_id)
    {
        switch_to_blog($this->current_site_id);
        $term = get_term_by('id', $term_id, $this->taxonomy_name);
        restore_current_blog();
        return $term;
    }