Changes between Initial Version and Version 1 of Ticket #18932, comment 2
- Timestamp:
- 10/13/2011 08:30:17 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18932, comment 2
initial v1 5 5 $user = new WP_User( 2 ); // 2 being the id of a user with the 'subscriber' role 6 6 7 print_r( $user->caps);7 print_r( $user->caps ); 8 8 9 9 $user->set_role( 'subscriber' ); 10 10 11 print_r( $user->caps);11 print_r( $user->caps ); 12 12 }); 13 13 }}}