'noticora_notice', 'post_status' => 'any', 'posts_per_page' => 100, 'fields' => 'ids', ) ); foreach ( $noticora_ids as $noticora_id ) { wp_delete_post( $noticora_id, true ); } } while ( $noticora_ids ); } delete_option( 'noticora_settings' ); } if ( is_multisite() ) { foreach ( get_sites( array( 'fields' => 'ids', 'number' => 0, ) ) as $noticora_site_id ) { switch_to_blog( $noticora_site_id ); noticora_uninstall_site(); restore_current_blog(); } } else { noticora_uninstall_site(); }