Customizing Deleted/Archived blogs warning pages

The function that deals with this is ms_site_check(). If existent, it will use the following files. And they should render a full custom HTML page. WP_CONTENT_DIR . ‘/blog-deleted.php’ WP_CONTENT_DIR . ‘/blog-inactive.php’ WP_CONTENT_DIR . ‘/blog-suspended.php’ Another option is to short-circuit the process and redirect the visitor. It has to be done with a Must Use plugin … Read more

How to use Multiple-Domains in one Multi-Site Installation?

As far as I know, Multi-Domains from WPMUDEV is the only plugin which works flawlessly with the lastest version of WordPress. It is BuddyPress compatible, has a single signon and even a multi-subdomain feature (blog1.subdomain.site.com, blog2.subdomain.site.com). There is a free alternative, but it has not been updated for the latest version of WordPress (the author … Read more

Full Domain Mapping with WP3 in Multiuser Mode

You can map regular domains to a WordPress Multisite installation using the WordPress MU Domain Mapping plugin. There’s also a great tutorial available: WordPress 3.0: Multisite Domain Mapping Tutorial For reference … I asked a similar question yesterday. I have a client who hosts multiple blogs with unique domains, but it becomes a hassle to … Read more

restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]

Short answer is NO. That is an ugly hack =) More global variables are affect than the ones that you are var_dump’ing. Here are the globals that I found affected: $wpdb, $wp_roles, $wp_object_cache, $global_groups, $GLOBALS[‘_wp_switched_stack’], $GLOBALS[‘blog_id’], and $GLOBALS[‘table_prefix’]. There could be more. I found that $wpdb was another major variable that was altered by switch_to_blog(). … Read more