3.3) { require_once ABSPATH.'/wp-admin/includes/plugin.php'; deactivate_plugins(__file__); wp_die("Sorry, this Wordpress module will only run on PHP versions 5.3 and above and on Wordpress version 3.3 and higher. If you are unsure please ask your hosting company. The addon has been deactivated. You are free to navigate back to the main admin area."); } include_once ("config.php"); //Loop through all files in folders and include them in main file foreach (\Config\Configuration::total_files() as $file) { if (is_admin()) { // require only in admin require_once ($file); } }