public static function edit_term($term_id, $tt_id, $taxonomy) { if (strpos($taxonomy, 'pa_') === 0) { self::$editing_term = get_term_by('id', $term_id, $taxonomy); } else { self::$editing_term = null; } }