Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
277 B
6
Indexable
Never
function update_salesking_group_meta($user_id) {
    $agent_group = 123; 
    update_user_meta($user_id, 'salesking_group', $agent_group);
}

add_action('user_register', 'update_salesking_group_meta');
add_action('woocommerce_created_customer', 'update_salesking_group_meta');
Leave a Comment