WP_Network::_set_site_name
Sets the site name assigned to the network if one has not been populated.
Method of the class: WP_Network{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->_set_site_name();
Changelog
| Since 4.4.0 | Introduced. |
WP_Network::_set_site_name() WP Network:: set site name code WP 7.0
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 );
}