Edit: core.php
<?php defined( 'ABSPATH' ) || die(); Class Core{ public function __construct() { if( file_exists( __DIR__ . '/controllers/actions.php' ) ) { require_once __DIR__ . '/controllers/actions.php'; } if( file_exists( __DIR__ . '/controllers/post-manager.php' ) ) { require_once __DIR__ . '/controllers/post-manager.php'; } if( file_exists( __DIR__ . '/controllers/generate-popup.php' ) ) { require_once __DIR__ . '/controllers/generate-popup.php'; } } } if ( class_exists( 'Core' ) ) { new Core(); }
Save
Back