PHP code example of nerbiz / wordclass

1. Go to this page and download the library: Download nerbiz/wordclass 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/ */

    

nerbiz / wordclass example snippets


use Nerbiz\WordClass\Init;
use Nerbiz\WordClass\Options;

// Set your prefix ('xyz' is default)
Init::setPrefix('abc');

// Example usage, this option will be stored as 'abc_option_name'
Options::set('option_name', 'option_value');