aaemnnosttv / wp-cli-login-command

Log in to WordPress with secure passwordless magic links.
https://aaemnnost.tv/wp-cli-commands/login/
MIT License
294 stars 47 forks source link

Add support for login hooks #20

Closed aaemnnosttv closed 7 years ago

aaemnnosttv commented 7 years ago

This PR adds support for hooks login fired during a normal login request.

This includes the wp_login action and the login_redirect filter.

It also includes login command-specific hooks for those who wish to target cli logins specifically using the wp_cli_login/login action and the wp_cli_login/login_redirect filter.

These hooks may be used to integrate with existing monitoring/audit plugins or for additional custom functionality.

Resolves #13