Last active
August 29, 2015 14:18
-
-
Save horike37/40b8a5d2a9d549a70792 to your computer and use it in GitHub Desktop.
WordPressでユーザのメアドを無効化する
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 | |
require_once( 'wp-load.php' ); //スクリプト設置位置によってパスを変える | |
$users = get_users(); | |
foreach ( $users as $user ) { | |
wp_update_user( array( 'ID' => $user->ID, 'user_email' => $user-> user_email.'.example') ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment