ms_upload_constants example

wp_start_object_cache();

if ( ! $current_site instanceof WP_Network ) {
    $current_site = new WP_Network( $current_site );
}

if ( ! $current_blog instanceof WP_Site ) {
    $current_blog = new WP_Site( $current_blog );
}

// Define upload directory constants. ms_upload_constants();

/** * Fires after the current site and network have been detected and loaded * in multisite's bootstrap. * * @since 4.6.0 */
do_action( 'ms_loaded' );
Home | Imprint | This part of the site doesn't use cookies.