Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Copy from below here
- function my_pmpro_set_username() {
- if ( empty( $_REQUEST['username'] ) && ! empty( $_REQUEST['bemail'] ) ) {
- $_REQUEST['username'] = $_REQUEST['bemail'];
- }
- }
- add_action( 'init', 'my_pmpro_set_username' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement