• I’m creating a WordPress-driven website to replace an existing website. The existing website uses server directory protection to provide two areas subject to login. For the two protected areas, the respective login User ID and Password was provided to all those who need to know it. a.k.a. Two common logins.

    With the new WP-driven site, we will be moving to individual logins for every member. However, during the transition period I have to replicate these two “common” logins. I’ve created user accounts for each, but I also have to have a way to prevent people from being able to change the profile information on those two accounts. Being able to prevent editing of ANY profile info on these two accounts would be ideal, but the ability to prevent editing of e-mail address AND password is an absolute must.

    I’ve found plugins and hacks etc to restrict editing across the board, but nothing so far on how to do so for specific user accounts. Any pushes in the right direction would be greatly appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter becca37

    (@becca37)

    Not elegant, but in WP 3.2.1, in the wp-admin/user-edit.php, after

    if ( !current_user_can('edit_user', $user_id))
    	wp_die(__('You do not have permission to edit this user.'));

    I added

    if ( $user_id == [insertuseridhere])
    	wp_die(__('Your are logged in as user <b>[insertusernamehere]</b>. This is a shared login therefore the profile is not editable. Thank you.<br/><br/>Return to the <a href="[inserturlhere]">[insertwebsitenamehere] website.</a>'));
Viewing 1 replies (of 1 total)
  • The topic ‘Freeze Profile Info for Specific Users’ is closed to new replies.