• I have a custom meta field in user profile.
    This field is only accessible to administrators.

    I can access current user id using ‘$current_user->ID’.

    But I am unsure how to access other user profile id.

    For example, there are 2 users: admin under name ‘Admin’ and user under name ‘Bob’.

    When admin logs in, I can get his id using code ‘$current_user->ID’, but, how can I retrieve Bob’s ID from profile dashboard ?

  • The topic ‘User profile ID’ is closed to new replies.