Why not make a new account for this user which will generate a new database ID. Then delete the user with the ID of 1 and attribute all posts / content to the new user you created for them? Then you don’t have to worry about queries or messing up your database. Also, as said before this makes absolutely no sense from a security standpoint as it’s pointless. If your client doesn’t trust you enough and wants to micromanage the site security they clearly know nothing about, might be time to dump that client.
Related Posts:
- Basic auth WordPress REST API dilemma
- security+best practices: root or www-data on a wordpress content folder?
- Any reason to be concerned by a wave of “zombie” blog signups?
- Setting WP Admin passwords to expire
- What do spammers gain by signing up as a user?
- How can I secure a WordPress blog using OpenID from a single provider?
- Creating a Front-end based User Search
- Generate unique number when registering a new user
- Force user to change their password on the frontend at the first login and password policy
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- Are there mutiple ways to get usernames (as a hacker)
- Reset Password policy
- How do I protect user_activation_key?
- Failed login attempts
- Separate Out Real Users
- create new users in db starting at what ID?
- WordPress Password security related questions
- Preventing user enumeration: which logic is better?
- How to get ID of Edit User page during wp_handle_upload_prefilter, whilst in Media picker?
- Force users to use password with specifications
- Echo a list of all subscriber’s user IDs
- Append USER ID to an outbound link?
- Safely changing UserID’s, re-using deleted UserID’s and automatically using deleted userID’s instead of an increment
- Iterating users while user iteration is suppressed
- How to use url formatter with integer
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Securely log in a user without a password using a link?
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- WordPress – Security Question at Login from User’s Meta Data
- Set a minimal number for next user_id
- Can I provide a user’s user_ID to them and can it also be searchable in a member’s directory
- Getting a List of Currently Available Roles on a WordPress Site?
- Editor can create any new user except administrator
- Confirmation required on email change
- get_current_user_id() returns 0?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- How to assign capabilities to user NOT to User Role
- Where to Store Custom User Fields
- Redirect after User Activation [closed]
- Getting users who registered 360 days from current date
- Querying Email Addresses for a List of Users with Same Last Name?
- Mass delete spam accounts
- WP_User->add_role producing unexpected results
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Post as someone else
- How to make user accept license agreement before download
- 14,000 WordPress Users. How did they get there?
- Adding second Email address for WP user notifications
- how to make a profile entry read only except for site managers [closed]
- Managing Users and Creating Groups [closed]
- Users: List A to Z, for Users
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- Max no of simultaneous active sessions for a single user
- WPML Default Language User Meta [closed]
- Search Users base on meta_value & meta_key
- Fix permissions for users role
- Redirect subscribers to last viewed page after log-in
- User Meta Data in a Sortable Table
- How to stop redirect if user is already on correct page (Using Case Switch)
- search users using user name and user meta in wordpress
- How to activate the user search
- How change user type from contributor to author
- WordPress Login Customization for External Authentication
- Is there any action /filter hook I can use to disable login for some user role?
- Create a “user log”
- How can I do a url redirect to include a wordpress username?
- WP_User_Query combining role and ids
- Adding fields to the “Add New User” but the form data not saved into DB
- Admin approval for editing user profile
- User meta and public function security
- How can I set wp_dropdown_users so that it shows only authors?
- WP Create User – Preventing repeated information
- Editor role can only create/edit/delete users who have one of two roles
- Can’t add user- wrong message “this user name is invalid because it uses illegal characters”
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- Restricting wordpress login sessions for a web app
- change user password REST API
- Find count of WordPress users by role and search string for user name
- How to destroy all user sessions via WP-CLI
- Is a list of user names or IDs in a custom profile field the best way to create a followers list?
- Get meta key with value for user
- Redirect current user
- Display Users and user url’s
- custom login form, guide me
- Get the author registration date in the header.php file
- Front end login and page restriction
- How i will get the images of highest scored users?
- view and update form only for registered users
- User registration add user ID?
- Redirect based on log-in status per JavaScript
- i need to let a user to add a role from a frontend form
- Integrating Facebook Registration (and Login) on a WordPress page
- WordPress C# User Login
- Create users from frontend without password
- How to get user contact info
- Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?
- Remove @gmail.com from WordPress username
- How to create a specific role to manage users
- How to track all users logged into a site?
- Export user data from Squirrly’s Starbox plugin?