clean_network_cache example



    // If WP_DEFAULT_THEME doesn't exist, also include the latest core default theme.     if ( ! wp_get_theme( WP_DEFAULT_THEME )->exists() ) {
        $core_default = WP_Theme::get_core_default_theme();
        if ( $core_default ) {
            $allowed_themes[ $core_default->get_stylesheet() ] = true;
        }
    }

    if ( function_exists( 'clean_network_cache' ) ) {
        clean_network_cache( $network_id );
    } else {
        wp_cache_delete( $network_id, 'networks' );
    }

    if ( ! is_multisite() ) {
        $site_admins = array( $site_user->user_login );
        $users       = get_users(
            array(
                'fields' => array( 'user_login' ),
                'role'   => 'administrator',
            )
        );
Home | Imprint | This part of the site doesn't use cookies.