Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

update user role wordpress

$wp_user_object = new WP_User($current_user->ID);
$wp_user_object->set_role('editor');
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #update #user #role #wordpress
ADD COMMENT
Topic
Name
4+7 =