PHP code example of wp-kit / wp-login-auth

1. Go to this page and download the library: Download wp-kit/wp-login-auth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-kit / wp-login-auth example snippets


composer 

WPKit\WpLoginAuth\WpLoginAuth::boot([
  'allow' => array(
    '/some/page'
  ),
  'disallow' => array(),
  'logout_redirect' => '/page/login',
  'login_redirect' => home_url(),
  'mask_wp_login' => false
]);