Created
October 16, 2016 21:15
-
-
Save ko31/2cde9148cf56a965c573620039ee6237 to your computer and use it in GitHub Desktop.
【WordPress】管理画面ログイン時にLINE Notifyにメッセージ通知する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my_wp_login( $user_login, $current_user ) { | |
$message = $user_login . 'がログインしました'; | |
my_send_linenotify( $message ); | |
} | |
add_action( 'wp_login', 'my_wp_login', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment