WP Manifestindependent plugin directory
manifest / developer / flagpole

Flagpole archived

Easily register and work with feature flags in your theme.

by James Williams · github.com/jamesrwilliams/flagpole

14stars
20kcomposer installs
8forks

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/jamesrwilliams/flagpole/archive/refs/heads/develop.zip

Also on Packagist as jamesrwilliams/wp-feature-flags:

composer require jamesrwilliams/wp-feature-flags

From the readme

Flagpole This plugin is for WordPress theme developers who wish to add simple feature flags to their themes. These flags can be enabled via an admin interface, previewed on a per-user, or group basis, and even enabled via a query string for those without accounts. For planned development work please see the roadmap or issues labeled with enhancement. Contents 1. Installation 2. Adding flags to themes 3. Enabling flags 4. Flag Groups 5. Shortcodes 6. Contributing Installation Add this project's source code to your wp-content/plugins directory and enable it like you would any other plugin. It is also available via Packagist to use with composer. This plugin is currently not available via the WordPress Plugin directory however we are working towards that for v1.0.0. Required theme changes As this plugin is closely coupled with your theme code it is a good idea to add the following block to your theme to catch any errors if the Flagpole plugin is disabled for any reason. Register a flag To register a flag, simply add the following to your theme's functions.php file using the flagpoleregisterflag function: Wrapping the registration function call in a functionexists hel

Read the full README on GitHub →

Releases

TagPublished
0.1.4-beta Apr 22, 2021
0.1.3-beta Mar 2, 2021
0.1.2-beta Sep 19, 2019
0.1.1-beta Mar 28, 2019
0.1.0-beta Feb 28, 2019

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.