iI am creating a plugin, that supposesupposed to work on WP multi sitemultisite yesterday. I've installed WP multi sitemultisite on my server. to test things out andWhile testing I found out that register_activation_hook created 1 table on the main blog only, while iI have 2 more blogs.
Here is how iI 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 ?