false ) ); } $terms = get_terms( array( 'taxonomy'=>'svk_collection', 'hide_empty'=>false, 'fields'=>'ids' ) ); if ( ! is_wp_error( $terms ) ) { foreach ( $terms as $term ) { wp_delete_term( $term, 'svk_collection' ); } } foreach ( array( 'svk_settings', 'svk_posts', 'svk_featured', 'svk_pending', 'svk_seen_guid', 'svk_last_fetch', 'svk_backfill_status', 'svk_feed_meta' ) as $opt ) { delete_option( $opt ); } wp_clear_scheduled_hook( 'svk_refresh_feed' ); wp_clear_scheduled_hook( 'svk_backfill' ); // Stored article listings (copies of Substack data; the articles themselves stay on Substack). $ids = get_posts( array( 'post_type' => 'svk_article', 'post_status' => 'any', 'numberposts' => -1, 'fields' => 'ids' ) ); foreach ( $ids as $id ) { wp_delete_post( $id, true ); } }