Last active
January 17, 2018 07:12
-
-
Save ultimatemember/02311172f7b42adeb3ed to your computer and use it in GitHub Desktop.
Delete display_name usermeta from all users
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
$users = get_users( array('fields' => 'ID') ); | |
foreach( $users as $user_id ) { | |
delete_user_meta( $user_id, 'display_name' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do we update user_meta manually?