PHP code example of develtio / wp-loader
1. Go to this page and download the library: Download develtio/wp-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/ */
develtio / wp-loader example snippets
use Develtio\WP\Loader\TypesLoader;
(new TypesLoader(__DIR__ . '/post-types/*.php'))->run();
use Develtio\WP\Loader\GroupLoader;
use Develtio\WP\Loader\TypesLoader;
$gl = new GroupLoader();
$gl->add(new TypesLoader(__DIR__ . '/post-types/*.php'));
$gl->add(new TypesLoader(__DIR__ . '/taxonomies/*.php'));
$gl->run();