pre_get_blogs_of_user

pre_get_blogs_of_user

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('pre_get_blogs_of_user') is found 1 times:

  • /wp-includes/user.php line 620
    	 * @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 );