WordPress.org

Ready to get started?Download WordPress

Forums

Hide Admin user from users list (2 posts)

  1. redlight90
    Member
    Posted 1 year ago #

    Hello,
    I want know how make hide my admin account, from users list...
    Thanks

  2. bcworkz
    Member
    Posted 1 year ago #

    As a guess, and to do so cleanly, you would extend the WP_Users_List_Table class to replace the single_row() method to one that essentially suppresses the row when the admin user is encountered. You probably would want an exception to list yourself if you are the current user.

    To completely hide, you would also need to alter the user count display and who knows what else.

Topic Closed

This topic has been closed to new replies.

About this Topic