WordPress.org

Ready to get started?Download WordPress

Forums

How to get list of sites where user is admin? (1 post)

  1. wzshop
    Member
    Posted 2 years ago #

    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. ]

Topic Closed

This topic has been closed to new replies.

About this Topic