get_col( "SELECT blog_id FROM $wpdb->blogs" ); foreach ( $blog_ids as $blog_id ) { // Switch to blogs if there are more than One(1). switch_to_blog( $blog_id ); if ( isset( $settings ) && isset( $settings['remove_all_settings'] ) && 'on' === $settings['remove_all_settings'] ) { delete_option( 'login_customizer_options' ); delete_option( 'login_customizer_settings' ); delete_option( 'wpheaderandfooter_active_time' ); delete_option( 'wpheaderandfooter_review_dismiss' ); } restore_current_blog(); } }