Registration area + reserved area

Paste this into your functions.php file and edit according to comments. add_filter(‘login_redirect’, ‘redirect_user’, 10); function redirect_user(){ global $user; //where you want to redirect users too $redirect = home_url() . ‘/where-do-we-go-from-here/’; /* * each role listed in this array will be redirect to above URL * if you only have one user role to redirect then … Read more

Register form how to get Total Control of it

Copy this function and modify it as per your needs. function custom_register_new_user( $user_login, $user_email ) { $errors = new WP_Error(); $sanitized_user_login = sanitize_user( $user_login ); $user_email = apply_filters( ‘user_registration_email’, $user_email ); // Check the username if ( $sanitized_user_login == ” ) { $errors->add( ’empty_username’, __( ‘<strong>ERROR</strong>: Please enter a username.’ ) ); } elseif ( … Read more

Fatal error: Call to undefined function register_new_user()

I greped a 3.6 install and got this: ./wp-login.php:321:function register_new_user( $user_login, $user_email ) { ./wp-login.php:550: $errors = register_new_user($user_login, $user_email); Notice the function definition is in wp-login.php. If you look at the current wp-login.php, it isn’t there anymore and there is a note at the top of the page, just above the code: Last change on … Read more