PHP code example of wpup / features

1. Go to this page and download the library: Download wpup/features library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wpup / features example snippets


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

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

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

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