Displaying a message upon user registration

http://codex.wordpress.org/Plugin_API/Action_Reference/user_register This action hook allows you to access data for a new user immediately after they are added to the database. The user id is passed to hook as an argument. add_action(‘user_register’, ‘registration_redirect’); function registration_redirect($user_id) { $url=”PAGE_WHERE_YOUR_CODE_IS_DISPLAYED”; wp_redirect( $url ); exit; } placing that in your functions.php should work. This attempts to redirect the user … Read more

Disable multisite-wide plugins on specific sites

Multisite-wide active plugins are stored in the active_sitewide_plugins site option. We can hook into this option and return an empty array (no plugins are active). This snippet should be installed as a Must-Use Plugin. <?php /** * Plugin Name: Disable Sitewide Plugins * Author: Shea Bunge * Author URI: http://bungeshea.com * Version: 0.1 */ global … Read more

Speed up MU WordPress on Apache VPS?

I checked your site with webpagetest.org : http://www.webpagetest.org/result/130803_C5_3FE9/1/details/ You are loading a lot of information from a lot of different places– Facebook, Google, Twitter, Pinterest, doublclick… You are loading something like 80 resources from remote locations (To be honest, I lost count but that is in the ballpark). That is more than half– 55-60%– of … Read more

No My Sites link after installing Multisite

When you edit wp-config.php the second time – when the installer tells you to update your wp-config.php file with a bunch of multisite-related includes – at this point remove the definition for WP_ALLOW_MULTISITE. REMOVE this line: define(‘WP_ALLOW_MULTISITE’, true); based on your example above, you’d be left with: /* Multisite */ define(‘WP_ALLOW_MULTISITE’, true); define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’, … Read more

https redirect hell (adding www)

Did you check your ISP’s setting? E.g. in Dreamhost’s control panel you have these 3 options: Do you want the www in your URL? Leave it alone: Both http://www.domain.com/ and http://domain.com/ will work. Add WWW: Make http://domain.com/ redirect to http://www.domain.com/ Remove WWW: Make http://www.domain.com/ redirect to http://domain.com/