I'm developing a plugin for members area in WordPress and I'm going to control this access through the roles functions.
Assuming I create the functions: content1, content2, and content3. How would I be able to assign more than one role to a created user?
$website = site_url();
$cliente_userdata = array(
'first_name' => 'Primeiro Nome',
'user_login' => 'E-mail',
'user_email' => 'E-mail',
'user_url' => $website,
'role' => 'conteudo1',
'user_pass' => NULL // Cria Sózinho
);
wp_insert_user( $cliente_userdata ) ;