PHP code example of underpin / custom-post-type-loader
1. Go to this page and download the library: Download underpin/custom-post-type-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 / custom-post-type-loader example snippets
// Register custom Post Type
underpin()->custom_post_types()->add( 'example_type', [
'type' => 'example-type', // see register_post_type
'args' => [ /*...*/ ] // see register_post_type
] );