Looking for help?
< All Topics
Print

How to modify customer user name auto generate while create new customer via pos

add_filter('op_customer_username',function($username,$customer_data){
    if(isset($customer_data['phone'])) 
    {
        $username = strtolower($customer_data['phone']);
    }
    return $username;
 },110,2);
Table of Contents