Jetpack::is_main_network_option PHP Метод

is_main_network_option() публичный Метод

The reason we are type casting this is because we want to avoid the situation where the result is false since when is_main_network_option return false it cases the rest the get_option( 'jetpack_is_multi_network' ); to return the value that is set in the database which could be set to anything as opposed to what this function returns.
public is_main_network_option ( boolean $option ) : boolean
$option boolean
Результат boolean
    public function is_main_network_option($option)
    {
        // return '1' or ''
        return (string) (bool) Jetpack::is_multi_network();
    }
Jetpack