WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18932, comment 2


Ignore:
Timestamp:
10/13/11 20:30:17 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18932, comment 2

    initial v1  
    55        $user = new WP_User( 2 ); // 2 being the id of a user with the 'subscriber' role 
    66 
    7         print_r($user->caps); 
     7        print_r( $user->caps ); 
    88 
    99        $user->set_role( 'subscriber' ); 
    1010 
    11         print_r($user->caps); 
     11        print_r( $user->caps ); 
    1212}); 
    1313}}}