WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wpmu current site


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Description

Sets current_site object.

Usage

<?php wpmu_current_site(); ?>

Parameters

This function does not accept any parameters

Return Value

$current_site (object) 
Object is returned on success, otherwise dies with error message

Examples


Notes

This is a private function and should not be called directly. This page is provided for informational purposes.

Change Log

Since: 3.0.0

Source File

wpmu_current_site() is located in wp-includes/ms-load.php

Related

 

See also index of Function Reference and index of Template Tags.