shortcode - User name in referral URLs

I want to change the referral link structure Currently it's:I want to change it to:?pkey=usernameUser ID shortco

I want to change the referral link structure 

Currently it's:


I want to change it to:

/?pkey=username

User ID shortcode 


$user_ID = get_current_user_ID();


function mwb_wpr_create_referral_code()
    {
        
        $length = 10;
        $pkey = '';
        $alphabets = range('A','Z');
        $numbers = range('0','9');
        $final_array = array_merge($alphabets,$numbers);
        while($length--)
        {
            $key = array_rand($final_array);
            $pkey .= $final_array[$key];
        }
        
        return $pkey;
    }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742281888a4414640.html

相关推荐

  • shortcode - User name in referral URLs

    I want to change the referral link structure Currently it's:I want to change it to:?pkey=usernameUser ID shortco

    22小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信