PHP code example of moxie-lean / wp-taxonomy

1. Go to this page and download the library: Download moxie-lean/wp-taxonomy 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/ */

    

moxie-lean / wp-taxonomy example snippets




$tax = new \Lean\Taxonomy([
    'name' => 'Taxonomy Name',
    'singular' => 'Single Tax',
    'plural' => 'Multiple Taxes',
    'slug' => 'new-taxonomy',
    'objects' => [ 'cpt-one', 'cpt-two' ]
]);
$tax->init();