Flags
Flags: WordPress admin-controlled user-based feature flags
★ 36stars
59kcomposer installs
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/wp-flags/archive/refs/heads/master.zipAlso on Packagist as humanmade/wp-flags:
composer require humanmade/wp-flagsFrom the readme
Flags
Lightweight WordPress plugin to enable exposing feature flags to end-users, based on code-based ( or admin UI in the future ) criteria.
A Human Made project.
NOTE: This is a work-in-progress plugin.
Installation
Using Composer
- Require the package in your project
composer require humanmade/wp-flags
Using submodules
- Add the plugin as a submodule ( adjust the path as necessary )
git submodule add git@github.com:humanmade/wp-flags.git content/plugins/wp-flags
Usage
Scope of Setting a Flag
A flag can be set at either the user or site scope, which determines how a flag is controlled. A user-scoped flag can be turned on or off by each user for that user only on a site, whereas a site-scoped flag is turned on or off for every user and is controlled in the site settings.
Credits
Written and maintained by Shady Sharaf. Thanks to all our contributors.
Interested in joining in on the fun? Join us, and become human!
Read the full README on GitHub →