Assign Subscriber capabilities to a custom user role

WordPress subscriber have only the read capability. So you have to pass to add_role only the read parameter, like:

$client_role = add_role('client', 'Client',
array (
  'read' => TRUE // true allows this capability
));

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)