Customizing wp-activate.php

You are right, this is very hacky. What I ending up doing was creating two new page templates Register and Activate and creating two new WordPress pages using those templates and then using a filter in my functions.php file to modify the behaviour one wpmu_signup_user_notification. Users will register on this new Register page and they … Read more

Can I set some default pages to be created on every creation of a new blog

I recommend creating a function in your functions.php file that ties to the action hook activate_blog. Use the WordPress functions get_pages() to see if your default pages exist. If they do not, create them with wp_insert_post. add_action(‘activate_blog’,’my_default_pages’); function my_default_pages(){ $default_pages = array(‘About’,’Home’,’My Store’,’My Address’); $existing_pages = get_pages(); foreach($existing_pages as $page){ $temp[] = $page->post_title; } $pages_to_create … Read more

Basic Multisite Question – Managing Content Centrally

I’ve successfully used the ThreeWP Broadcast plugin to do this on a WPMU installation. The basic concept is that you have one ‘broadcasting’ site from which you can broadcast content to other sites. The content can be posts, pages, custom post types, custom taxonomies, post meta or attachments. If content is updated on the ‘broadcasting’ … Read more

get_user_meta() to Return User Meta Only for Current Blog in Multi Site

WordPress distinguishes usermeta keys between sites by using the database prefix for each site. For example, instead of using the favorite_posts key, you’d use the meta key wp_23_favorite_posts. To get the prefix, you can use $wpdb->get_blog_prefix(). But wait, there’s actually a whole API dedicated to this. Rather than using *_user_meta(), use *_user_option(). These are internally … Read more

Multisite Domain Mapping with SSL

A Multi-Domain (UCC) SSL certificate will allow your users to choose their own domain to display. It may be important for you to know that many Certificate Authorities have a limit to the number of certificates that can be issued for a single IP address so if you are running a large network of over … Read more

WordPress Multisite, NGINX and WordPress Subdirectory Install

You might check in General Settings: Home URL should be http://example.com Site URL should be http://example.com/wp When you open http://example.com, what URL does it show for …/twentythirteen/style.css? Do you see the “broken” URL http://example.com/wp/test-network-site/wp-content/themes/twentythirteen/style.css in the source? If so, it suggests WordPress might be using a wrong path (not necessarily nginx). I think that should … Read more

wordpress multisite, how to keep user on subdomain throughout registration process?

What @petermolnar suggested also redirects your users to the main site if they want to register (I’ve tested this but feel free to make use of it. It’s good practice). What you need is a registration/login/edit-profile plugin for the front end: http://www.cozmoslabs.com/1341-wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/ It’s shortcode based so all you have to do is redirect your users … Read more

Domain mapping (without plugin) in 4.5.x multisite?

Here’s an example of a solution I configured, which leaves the site in the network, but establishes a domain map from any registered domain, to the network. It makes the network site appear to be a completely independent site, with all the functionality (log-in, etc.) intact. Goal: Map client’s registered domain, both www.foosite.com and foosite.com … Read more

WordPress Multisite allow site admin to add user without email confirmation

You will not be able to enable the checkbox for non-super-admins as the code for it shows: <?php if ( is_multisite() && is_super_admin() ) { ?> <tr> <th scope=”row”><label for=”noconfirmation”><?php _e(‘Skip Confirmation Email’) ?></label></th> <td><label for=”noconfirmation”><input type=”checkbox” name=”noconfirmation” id=”noconfirmation” value=”1″ <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( ‘Add the user without sending them a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)