Max no of simultaneous active sessions for a single user
No, there isn’t. WordPress login “sessions” are cookie-based and work on each device as if they were the only one in existence.
No, there isn’t. WordPress login “sessions” are cookie-based and work on each device as if they were the only one in existence.
The login process itself is not as important, it is a one time thing that with the right settings you can do once a year. What is important is the authentication cookies that are being sent. As long as they are not encrypted it doesn’t matter at all how much defense you put on the … Read more
this is very possible. I’ve done this in the past if they are in the same table but with the different extensions: (if they aren’t then you can merge the 2 tables) blog 1 (table prefix is ba1_) blog 2 (table prefix is bb2_) so you you would have 2 user tables in your database: … Read more
Just customize the login URL with the login_url filter: https://gist.github.com/tripflex/ac477b59d20bd11c5856edcffc13e5ef add_filter( ‘login_url’, ‘smyles_custom_login_url’, 10, 3 ); /** * Filters the login URL. * * @since 2.8.0 * @since 4.2.0 The `$force_reauth` parameter was added. * * @param string $login_url The login URL. Not HTML-encoded. * @param string $redirect The path to redirect to on login, … Read more
please see this it working fine for me 🙂 function uop_login_redirect( $redirect_to, $request, $user ) { return ( is_array( $user->roles ) && in_array( ‘administrator’, $user->roles ) ) ? admin_url() : site_url(); } add_filter( ‘login_redirect’, ‘uop_login_redirect’, 10, 3 );
Apparently, this is how it works already. You can have the user sign in using the main site’s wp-login.php. In your case just make sure the user is not added to the main site.
see register_form action hook for modifying the registration form add_action( “register_form”, function() { $html=”<p>”.__(‘Do you want to buy or sell?<br>Choose your role’).'</p>’; $html .= ‘<p>’; $html .= ‘<label for=”_customer”><input type=”radio” name=”user_role” id=”_customer” value=”customer”/>’.__(‘Customer’).'</label><br>’; $html .= ‘<label for=”_vendor”><input type=”radio” name=”user_role” id=”_vendor” value=”_vendor”/>’.__(‘Customer’).'</label>’; $html .= ‘</p>’; echo $html; } ); you can use user_register action to save … Read more
I’m not confident at all that I understand your set-up, and I also haven’t used Desktop Server. I’m also not sure why you’d install WP on an external drive, but I guess you had a reason. Anyway, it seems you may have located your WordPress files. If the installation is somewhere other than the local … Read more
If you create the user by passing the values entered to a function that combines them, then you can call it from another that calls wp_insert_user. Then you can save the username/pass as needed, and use the same function and form when preparing them for WP to check on log-in. All of the code below … Read more
User roles aren’t stored in the user or user meta table, they have their own table, and they’re on a per site basis so reusing them isn’t so simple for setups like this. In your case it would be significantly easier to use a multisite install using subdirectories rather than subdomains, then all of this … Read more