wp-kit/wp-login-auth

An authentication class for WordPress

1.0.1 2020-01-31 23:46 UTC

This package is not auto-updated.

Last update: 2024-04-20 19:32:24 UTC


README

An authentication class for WordPress.

Installation

Install via Composer in a composer driven folder:

composer require "wp-kit/wp-login-auth"

Usage

Anywhere in your theme or plugin, use the following code:

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

License

wp-kit/wp-login-auth is open-sourced software licensed under the MIT License.