wp-kit / wp-login-auth
An authentication class for WordPress
Installs: 7 449
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.2
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.