WordPress.org

Support

Support » How-To and Troubleshooting » How to get list of sites where user is admin?

How to get list of sites where user is admin?

  • Hi guys,

    I am using a WP multisite and want to list out the sites where the user has an admin role.

    What code should i use for this?
    I now use this code to get all the sites that the user is connected to:
    $user_sites = get_blogs_of_user( $user_id );

    Thanks.

    [ Please do not bump, that’s not permitted here. ]

  • The topic ‘How to get list of sites where user is admin?’ is closed to new replies.
Skip to toolbar