help with generated password PMPRO
-
hi there,
i modified this code because i would send credential only to paypal users when get the checkout.
in my code seem don’t recognizes the gateway paypal.am i wrong ?
function my_generate_passwords() { //get primary gateway $setting_gateway = get_option("pmpro_gateway"); if(!empty($_REQUEST['username']) && empty($_REQUEST['password']) && $setting_gateway == "paypalexpress") { $_REQUEST['password'] = pmpro_getDiscountCode() . pmpro_getDiscountCode(); //using two random discount codes $_REQUEST['password2'] = $_REQUEST['password']; } else { $_REQUEST['password'] = pmpro_getDiscountCode(); //using two random discount codes $_REQUEST['password2'] = $_REQUEST['password']; } return $gateways; } add_action("init", "my_generate_passwords");
- The topic ‘help with generated password PMPRO’ is closed to new replies.