get_col( $wpdb->prepare( "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s", $wpdb->esc_like( $heloow_pattern ) . '%' ) ); foreach ( $heloow_names as $heloow_name ) { delete_option( $heloow_name ); } } }; if ( is_multisite() ) { $heloow_offset = 0; do { $heloow_sites = get_sites( array( 'fields' => 'ids', 'number' => 100, 'offset' => $heloow_offset ) ); foreach ( $heloow_sites as $heloow_site_id ) { switch_to_blog( $heloow_site_id ); $heloow_cleanup_site(); restore_current_blog(); } $heloow_offset += 100; } while ( count( $heloow_sites ) === 100 ); } else { $heloow_cleanup_site(); }