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.
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
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
When referring to urls within the network-admin, you should consider the network_admin_url(). core function, that falls back to admin_url() for non-multisite setups. So try this, using add_query_arg just as @toscho uses in the answer OP links to: echo esc_url( add_query_arg( ‘action’, ‘your_option_name’, network_admin_url( ‘edit.php’ ) ) ); instead of hard-coding it with possible wrong assumptions … Read more
I followed the advice in this answer, and changed the given .htaccess template by WP Network installation: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) featured/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ featured/$2 [L] … Read more
One step is to use the editable_roles filter to remove roles from the dropdown but this doesn’t prevent the user from modifying the select value and create a user with “not allowed” role. Yes it does. This filter is not just for the dropdown. Modifying editable_roles does in fact prevent users from assigning a role … Read more