Change default admin to editor at signup
-
Hi,
I tried to use the Role of User code by previously provided by Sader:
“To change role of user on the blog while it is being created add the following to “mu-plugins” the change occurs immediately after the user creates a blog either on first signup or anytime they visit signup to create an additional blog:<?php function ds_new_user_meta($blog_id, $user_id) { add_user_to_blog($blog_id, $user_id, 'author' ); } add_action( 'wpmu_new_blog', 'ds_new_user_meta', 10, 2 ); ?>
“
I already had a MU folder so I just created a new php file named editor-at-signup.php and placed in the MU folder.
I get the following at main domain:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/31/7500231/html/caritaskids.com/wp-content/mu-plugins/editor-after-signup.php:9) in /home/content/31/7500231/html/caritaskids.com/wp-includes/pluggable.php on line 8971. Did I do the insertion properly into MU?
2. Please advise how to solve.Thank you.
- The topic ‘Change default admin to editor at signup’ is closed to new replies.