Tag Archives: wp network

WordPress multisite

Snippet: How to disable a network enabled plugin for one or more sites?

WordPress Multi-site feature was introduced in 3.0 version of WordPress. It is a light copy of the WordPress.com. Using this feature, you can create multiple WordPress website hosted at either separate directories or sub-domains (hosting on separate domains is not implemented yet). All the websites share same installation and so same themes and plugins. Plugins are activated globally through Network menu or through website’s plugin menu. But, If you want to disable one or more plugins in one or more of your websites, you can use following snippet to do it without using any plugin. It is very handy for the installations where root website has different layout than the other websites.

Snippet: Redirect Main Site To Sub-Site

Add following snippet to “functions.php” Snippet Result All the requests to ‘www.example.com’ will be redirected to ‘www.example.com/subsite’.