;    // Find all terms in the hierarchy so we resync those as well   $term      = get_term( $term_id );   $children  = get_term_children( $term->term_id, $term->taxonomy );   $ancestors = get_ancestors( $term->term_id, $term->taxonomy, 'taxonomy' );   $hierarchy = array_merge( $ancestors, $children );    foreach ( $hierarchy as $hierarchy_term_id ) {    if ( ! current_user_can( 'edit_term', $hierarchy_term_id ) ) {     return;    }     if ( apply_filters( 'ep_term_sync_kill', false, $hierarchy_term_id ) ) {     return;    }     do_action( 'ep_sync_term_on_transition', $hierarchy_term_id );     $this->sync_queue[ $hierarchy_term_id ] = true;   }  }  