if (isset($_GET['error_description'], $_GET['section']) && strpos($_GET['section'], 'error') !== false) {
                    // Authorizing error
                    include 'includes/views/html-login-fail-page.php';
                    die;
                }
            }
        }
        /**
         * Check if the user logged out
         */
        private function check_logout()
        {
            if (isset($_GET['ml-logout']) && $_GET['ml-logout'] == 'logout') {
                // Logout routines
                $this->remove_plugin_data();
                wp_safe_redirect(add_query_arg(array('ml-logout' => '1'), wp_get_referer()));
            }
        }
    }
    /**
     * Initialize the plugin
     */
    WooCommerce_MercadoLivre::register(array('called_class' => 'WooCommerce_MercadoLivre'));
    /**
     * Instance shortcut
     */
    function ML()
    {
        return WooCommerce_MercadoLivre::get_instance('WooCommerce_MercadoLivre');
    }
}