Multisite, turn off “create new site”
This setting is controlled under: Network Admin > Settings > “Allow new registrations.” You may want “Registration is disabled.”
This setting is controlled under: Network Admin > Settings > “Allow new registrations.” You may want “Registration is disabled.”
I don’t have the domain mapping on a test installation at hand currently, but what should work is: add_action( ‘template_redirect’, ‘auth_redirect’ ); As a plugin here: T5 Force Log In. auth_redirect() is WordPress’ native handler for authentication, if it doesn’t work, something is broken in core code.
You could use the technique in this Stack Overflow answer, that’s basically: switch_to_blog(1); //switch to main site $latest_posts = get_posts($args); foreach( $latest_posts as $post ) { // print post } restore_current_blog(); Just add ‘post_type’ => ‘your-custom-post-type’ to the query.
The question is how to overwrite these columns number settings in the Screen Options panel: Network dashboard When you change the number of columns in the screen options panel on the network dashboard page, you get the meta value of screen_layout_dashboard-network saved into the wp_usermeta table: In the WP_Screen class the columns number is fetched … Read more
The multisite setup allows you to enable and disable user registration at the network level but if you see the database it store the value in the wp_options tables for each site. So we can try the below and see if this work. Use the below code in the functions.php file. function wpse_enable_user_registration( $blog_id = … Read more
date_i18n() gets month from WP_Locale->get_month(). Which in turn fills months using baseline translation function __(), nothing fancy. Bottom line is — months should be translated in po/mo files, you just got incomplete translation.
So user_register is when the post data for user registration is submitted. Can you try this if ( isset( $_POST[‘first_name’] ) ) { $first_name = $_POST[‘first_name’]; } Ditto for last_name. I looked up the codex for the user_register hook, check the example.
Yes, reasonable. Setting up development clones of WordPress is very easy. Copy your files (rsync/scp are fine) to your dev server Setup a new database and database user (and setup permissions) on your dev server Update your wp-config.php file with your new database info: DB_NAME, DB_USER, DB_PASSWORD, DB_HOST (if other than localhost) Update: If this … Read more
Yes, you can enable a theme for a single site (as opposed to enabling it for your entire Multisite network). Go to the site’s Edit Site backend page and select the Themes tab. The URL should be something like example.com/wp-admin/network/site-themes.php?id=[site ID]. You’ll need Super Admin privileges on the Multisite network. Enable the theme(s) you’d like … Read more
A WordPress multi-site will handle this easily. This is what drives WordPress.com and the millions of sites (and domains) hosted there. Each site in a multi-site can use it’s own theme, will host separate content, etc. Whether you use the subdomain or subfolder install, you will need to use domain mapping to route foo.com and … Read more