Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joanrodas/plubo-roles
- Owner: joanrodas
- License: gpl-3.0
- Created: 2022-04-23T15:00:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T12:16:46.000Z (over 2 years ago)
- Last Synced: 2024-09-17T15:12:04.407Z (about 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[![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.