pre_get_blogs_of_user

pre_get_blogs_of_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_get_blogs_of_user') is found 1 times:

  • /wp-includes/user.php line 985
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    * @param int           $user_id User ID.
     * @param bool          $all     Whether the returned array should contain all sites, including
     *                               those marked 'deleted', 'archived', or 'spam'. Default false.
     */
    $sites = apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all );
     
    if ( null !== $sites ) {
        return $sites;
    }
     
    $keys = get_user_meta( $user_id );