Jetpack::require_jetpack_authentication PHP Метод

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

    function require_jetpack_authentication()
    {
        // Don't let anyone authenticate
        $_COOKIE = array();
        remove_all_filters('authenticate');
        remove_all_actions('wp_login_failed');
        if (Jetpack::is_active()) {
            // Allow Jetpack authentication
            add_filter('authenticate', array($this, 'authenticate_jetpack'), 10, 3);
        }
    }
Jetpack