Created
November 13, 2015 23:28
-
-
Save greenhornet79/e77ebc8cf3cb237c9250 to your computer and use it in GitHub Desktop.
Force new subscriber's username to be their email address during sign up for Leaky Paywall
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
<?php | |
add_filter('leaky_paywall_userdata_before_user_create', 'zeen101_force_email_for_new_user' ); | |
function zeen101_force_email_for_new_user( $userdata ) { | |
$userdata['user_login'] = $userdata['user_email']; | |
return $userdata; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment