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