Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joanrodas/plubo-roles

WordPress roles simplified
https://github.com/joanrodas/plubo-roles

plugin roles-management wordpress wordpress-capabilities wordpress-library wordpress-plugin wordpress-role wordpress-roles wordpress-roles-capabilities wp-plugin

Last synced: 15 days ago
JSON representation

WordPress roles simplified

Awesome Lists containing this project

README

        


Plubo Roles

[![GitHub stars](https://img.shields.io/github/stars/joanrodas/plubo-roles?style=for-the-badge)](https://github.com/joanrodas/plubo-roles/stargazers)
![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability-percentage/joanrodas/plubo-roles?style=for-the-badge)

WordPress roles simplified.


## Getting started

`composer require joanrodas/plubo-roles`

> You can also install Plubo Roles as a standalone WordPress plugin, simply downloading the zip and placing it in the plugins folder.


## Basic usage

```php
extend('subscriber')->addCaps(['view_lesson', 'view_task']);
$roles[] = pb_role('instructor')->extend('contributor')->restrictAdmin();
$roles[] = pb_role('subscriber')->rename('Member');
return $roles;
}); ?>
```


## Contributions
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=for-the-badge)](https://github.com/joanrodas/plubo-roles/issues)
[![GitHub issues](https://img.shields.io/github/issues/joanrodas/plubo-roles?style=for-the-badge)](https://github.com/joanrodas/plubo-roles/issues)
[![GitHub license](https://img.shields.io/github/license/joanrodas/plubo-roles?style=for-the-badge)](https://github.com/joanrodas/plubo-roles/blob/main/LICENSE)

Feel free to contribute to the project, suggesting improvements, reporting bugs and coding.