false ) ); } $term_ids = get_terms( array( 'taxonomy' => $taxonomy, 'hide_empty' => false, 'fields' => 'ids', ) ); if ( is_wp_error( $term_ids ) ) { continue; } // Removes each tab, its color/icon meta and its page assignments. foreach ( $term_ids as $term_id ) { wp_delete_term( $term_id, $taxonomy ); } } foreach ( array( 'settings', 'default', 'order', 'colors', 'icons', 'layouts', 'db' ) as $option ) { delete_option( 'tabwise_' . $option ); } }