Uses
Uses | Description |
---|---|
wp-includes/class-wp-network.php: WP_Network::get_main_site_id() | Returns the main site ID for the network. |
Getter.
Allows current multisite naming conventions when getting properties.
(string) (Required) Property to get.
(mixed) Value of the property. Null if not available.
File: wp-includes/class-wp-network.php
public function __get( $key ) { switch ( $key ) { case 'id': return (int) $this->id; case 'blog_id': return (string) $this->get_main_site_id(); case 'site_id': return $this->get_main_site_id(); } return null; }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_network/__get