wp_is_large_network

wp_is_large_network

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('wp_is_large_network') is found 2 times:

  • /wp-includes/ms-functions.php line 2729
    2725
    2726
    2727
    2728
    2729
    2730
    2731
    2732
    2733
    2734
    2735
         * @param string $component        The component to count. Accepts 'users', or 'sites'.
         * @param int    $count            The count of items for the component.
         * @param int    $network_id       The ID of the network being checked.
         */
        return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );
    }
     
    $count = get_blog_count( $network_id );
     
    /** This filter is documented in wp-includes/ms-functions.php */
    return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count, $network_id );
  • /wp-includes/ms-functions.php line 2735
    2732
    2733
    2734
    2735
    2736
    2737
    2738
    2739
    2740
    2741
        $count = get_blog_count( $network_id );
     
        /** This filter is documented in wp-includes/ms-functions.php */
        return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count, $network_id );
    }
     
    /**
     * Retrieves a list of reserved site on a sub-directory Multisite installation.
     *
     * @since 4.4.0