PHP code example of tj-digital / zeus

1. Go to this page and download the library: Download tj-digital/zeus 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/ */

    

tj-digital / zeus example snippets


private $moduleConfigs = [
    'gravityforms' => [
        'disabled' => false,
        'enableStyling' => true,
        'pushToGTM' => true,
        'populateCustomFields' => true,
    ],
    'acf' => [
        'disabled' => false,
        'hideAdmin' => true,
        'settingsPage' => true,
        'allowedBlocks' => true
    ],
    'dashboard' => [
        'disabled' => false,
        'disableWidgets' => true,
        'disableComments' => true,
        'removeAdminColumns' => true,
    ],
    'duplicate' => [
        'disabled' => false,
    ],
    'manifest' => [
        'disabled' => false,
    ],
    'optimsewp' => [
        'disabled' => false,
        'disableJquery' => true,
        'disableScripts' => true,
        'disableEmojis' => true,
        'disableHeadLinks' => true,
        'disableRestAPI' => true,
        'disableAdminBar' => true,
    ],
    'tinymce' => [
        'disabled' => false,
    ],
    'twig' => [
        'disabled' => false,
    ],
    'yoast' => [
        'disabled' => false,
        'disableAdminFilters' => true,
        'disableOptimisations' => true,
    ]
];

use NanoSoup\Zeus\Kernel as KernelBase;

class Kernel extends KernelBase
{
    public function __construct()
    {
        $kernelModuleConfig = [
            'acf' => [
                'addSettingsPage' => false,
                // Add as many of the configuration options above as