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: about 1 month ago
JSON representation
WordPress roles simplified
- Host: GitHub
- URL: https://github.com/joanrodas/plubo-roles
- Owner: joanrodas
- License: gpl-3.0
- Created: 2022-04-23T15:00:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T12:16:46.000Z (about 3 years ago)
- Last Synced: 2025-03-12T04:08:36.008Z (2 months ago)
- Topics: plugin, roles-management, wordpress, wordpress-capabilities, wordpress-library, wordpress-plugin, wordpress-role, wordpress-roles, wordpress-roles-capabilities, wp-plugin
- Language: PHP
- Homepage: https://plubo.dev
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Plubo Roles[](https://github.com/joanrodas/plubo-roles/stargazers)
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
[](https://github.com/joanrodas/plubo-roles/issues)
[](https://github.com/joanrodas/plubo-roles/issues)
[](https://github.com/joanrodas/plubo-roles/blob/main/LICENSE)Feel free to contribute to the project, suggesting improvements, reporting bugs and coding.