wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
* Remove an array of capabilities from role.
*/
Remove an array of capabilities from role.
Remove an array of capabilities from role .
function cms_tpv_remove_caps_from_role( $role, $caps ) {
	global $wp_roles;
	if ( $wp_roles->is_role( $role ) ) {
		$role = get_role( $role );
		foreach ( $caps as $cap )
			$role->remove_cap( $cap );
	}
}
function cms_tpv_remove_caps_from_role ( $ role , $ caps ) { global $ wp_roles ; if ( $ wp_roles -> is_role ( $ role ) ) { $ role = get_role ( $ role ) ; foreach ( $ caps as $ cap ) $ role -> remove_cap ( $ cap ) ; } }
Remove an array of capabilities from role.
Remove an array of capabilities from role .