1. Go to this page and download the library: Download underpin/taxonomy-loader 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/ */
underpin / taxonomy-loader example snippets
// Register taxonomy
underpin()->taxonomies()->add( 'taxonomy', [
'post_type' => 'post', // Defaults to post.
'id' => 'ingredients', // Required. See register_taxonomy
'description' => 'Ingredients for this recipe', // Human-readable description.
'name' => 'Ingredients', // Human-readable name. Usually plural. Will set "label" argument if name is unset in args.
'args' => [ // Default atts. See register_taxonomy
'public' => true,
],
] );