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' ); | |
} |
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
/* | |
You need to hook into um_submit_form_errors_hook with a | |
priority over 10. | |
You can stop registration here if the customer_code field does not | |
match the value you want "ALLOWED_VALUE" in this example | |
*/ |
NewerOlder