get_col( "SELECT blog_id FROM $wpdb->blogs" ); foreach ( $blog_ids as $blog_id ) { switch_to_blog( $blog_id ); create_table(); restore_current_blog(); } } else { create_table(); } } register_activation_hook( __FILE__, 'on_activate' ); ?>