I am creating a plugin, that supposed to work on WP multisite yesterday. I've installed WP multisite on my server. While testing I found out that register_activation_hook created 1 table on the main blog only, while I have 2 more blogs.
Here is how I create the tables now:
global $wpdb; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); $table_name = $wpdb->prefix . "pm_services"; $table = "CREATE TABLE $table_name ( ID bigint(20) NOT NULL AUTO_INCREMENT, service_id bigint(20) NOT NULL, name varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, UNIQUE KEY cuunique (`ID`) );"; dbDelta($table); Is there a way to creating this table for every blog on the network upon activation ?