PHP code example of barnythorpe / wp-config-containers
1. Go to this page and download the library: Download barnythorpe/wp-config-containers 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/ */
barnythorpe / wp-config-containers example snippets
use function Barnythorpe\WpConfigContainers\post_type;
$postType = post_type()
->name('my_custom_post')
->public(true)
->build();
$configArray = $postType->toArray();
bash
php generate.php