Last active
March 23, 2016 15:21
-
-
Save fumikito/7d73f1369dedc145732d to your computer and use it in GitHub Desktop.
勝手にログイン
This file contains 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
<?php | |
# ID1でログインする | |
include __DIR__.'/wp-load.php'; | |
wp_set_auth_cookie(1); | |
header( 'Location: '.admin_url() ); | |
exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment