latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

custom update user role

Home Forums Community Forum custom update user role

This topic contains 0 replies, has 1 voice. Last updated by  Vishnu Dutt 4 years, 3 months ago.

Topic Author Topic
Posted: Tuesday Sep 11th, 2012 at 7:30 am #24873

$new_role = ‘s2member_level1’;

// update user role using wordpress function
wp_update_user( array (‘ID’ => $user_id, ‘role’ => $new_role ) ) ;

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.