[wp-hackers] function remove_cap($cap)
David House
dmhouse at gmail.com
Thu Mar 2 08:47:49 GMT 2006
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');
--
-David House, dmhouse at gmail.com, http://xmouse.ithium.net
More information about the wp-hackers
mailing list