WordPress setting page for php-features. That package is installed when using this plugin so no need to install it yourself.
composer require wpup/features
First read php-features readme file to know how that package works.
Example:
features( [
'log' => false,
'checkout' => true
] );
Best practice is the set features before WordPress are loaded, e.g config files.
Add custom to description to features setting page:
add_filter( 'features_description', function () {
return 'my custom description';
} );
No HTML is allowed since the description is escaped.
Add custom labels to admin instead of feature keys:
add_filter( 'features_labels', function () {
return [
'log' => 'Log'
];
} );
Change admin menu capability:
add_filter( 'features_capability', function () {
return 'custom-cap';
} );
MIT © Fredrik Forsmo