Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_Network::_set_site_name() WordPress Method
The WP_Network::_set_site_name() method is used to set the network name. This can be useful if you want to change the name of your network without having to create a new network.
WP_Network::_set_site_name() #
Set the site name assigned to the network if one has not been populated.
Source
File: wp-includes/class-wp-network.php
private function _set_site_name() { if ( ! empty( $this->site_name ) ) { return; } $default = ucfirst( $this->domain ); $this->site_name = get_network_option( $this->id, 'site_name', $default ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |