2017 © Pedro Peláez
 

wordpress-plugin features

WordPress setting page page for feature flagging interface/implementation

image

wpup/features

WordPress setting page page for feature flagging interface/implementation

  • Wednesday, April 25, 2018
  • by fredrikforsmo
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Features

Build Status No Maintenance Intended, (*1)

WordPress setting page for php-features. That package is installed when using this plugin so no need to install it yourself., (*2)

Install

composer require wpup/features

Usage

First read php-features readme file to know how that package works., (*3)

Example:, (*4)

features( [
    'log'      => false,
    'checkout' => true
] );

Best practice is the set features before WordPress are loaded, e.g config files., (*5)

Filters

Add custom to description to features setting page:, (*6)

add_filter( 'features_description', function () {
    return 'my custom description';
} );

No HTML is allowed since the description is escaped., (*7)

Add custom labels to admin instead of feature keys:, (*8)

add_filter( 'features_labels', function () {
    return [
        'log' => 'Log'
    ];
} );

Change admin menu capability:, (*9)

add_filter( 'features_capability', function () {
    return 'custom-cap';
} );

License

MIT © Fredrik Forsmo, (*10)

The Versions

25/04 2018

dev-master

9999999-dev https://github.com/wpup/features

WordPress setting page page for feature flagging interface/implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress feature features fdd

25/04 2018

v1.0.1

1.0.1.0 https://github.com/wpup/features

WordPress setting page page for feature flagging interface/implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress feature features fdd

25/04 2018

v1.0.0

1.0.0.0 https://github.com/wpup/features

WordPress setting page page for feature flag-driven development.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress feature features fdd