<?php
/**
 * Admin
 *
 * @since   1.8.1
 * @package WPGlobus
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Admin page central.
 *
 * @since 1.6.6
 */
require_once dirname( __FILE__ ) . '/central/class-wpglobus-admin-central.php';
WPGlobus_Admin_Central::construct();

/**
 * WPGlobus_Register_Post_Types
 *
 * @since 2.2.24
 */
require_once dirname( __FILE__ ) . '/register-post-types/class-wpglobus-register-post-types.php';
WPGlobus_Register_Post_Types::construct();

/**
 * WPGlobus_Admin_Post
 *
 * @since 2.4
 */
require_once dirname( __FILE__ ) . '/class-wpglobus-admin-post.php';
WPGlobus_Admin_Post::construct();

if ( WPGlobus_WP::get_http_get_parameter( 'wpglobus-debug' ) ) { // WPCS: input var ok, sanitization ok.
	/**
	 * To load debug info
	 * site/wp-admin/post.php?post={{post_ID}}&action=edit&wpglobus-debug=godmode
	 * or
	 * site/wp-admin/post.php?post={{post_ID}}&action=edit&wpglobus-debug=meta
	 */
	require_once dirname( __FILE__ ) . '/debug/class-wpglobus-admin-debug.php';
	WPGlobus_Admin_Debug::get_instance();
}
