[wp-hackers] Re: function remove_cap($cap)

ozgreg wpdevelop at ozgreg.com
Thu Mar 2 11:47:12 GMT 2006



dmhouse at gmail.com wrote:
> On 02/03/06, ozgreg <wpdevelop at ozgreg.com> wrote:
> 
> >  To handle some of the Gallery2 security aspects I have added two new caps however unless I am missing something here remove_cap($cap) just  unsets the cap it actually does not remove that cap from the role.
> > 
> > 
> 
> global $wp_roles;
> $wp_roles->remove_cap('rolename', 'capname');
> 


which just unsets the cap it does not remove it from the role..


-------------------- m2f --------------------

WPG2 Forums (http://wpg2.ozgreg.com/forums/)

-------------------- m2f --------------------






More information about the wp-hackers mailing list