$grant ) { if ( $grant ) { $enabled_capabilities[] = $capability; } if ( ! $grant ) { $disabled_capabilities[] = $capability; } } wpcom_vip_add_role( $role, $display_name, $enabled_capabilities ); if ( $disabled_capabilities !== array() ) { wpcom_vip_remove_role_caps( $role, $disabled_capabilities ); } } /** * Removes a role from the system. * * @param string $role Role to remove. * * @return void */ protected function remove_role( $role ) { remove_role( $role ); } }