I\'d like to create an admin user in Wordpress and then hide it from the users list in the wordpress dashboard, as a kind of hidden back door. I am not trying to hide all admins
I know, an old topic but someone sent me this link today..
One update: The hook is no longer pre_user_query
BUT wp_user_query
instead.
Also, with this method you're hiding your account from this particular admin account alone. Not all. What if another admin is added later on?
What I'd do is to hide the 'secret' account from anyone, except for themselves (in order to be able to edit it).