load_dependencies(); $this->define_admin_hooks(); $this->define_features(); } /** * Load the required dependencies for this plugin. */ private function load_dependencies() { // The class responsible for orchestrating the actions and filters require_once SEOPROSTACK_PLUGIN_DIR . 'includes/core/class-seoprostack-loader.php'; $this->loader = new SEOProStack_Loader(); } /** * Register all of the hooks related to the admin area. */ private function define_admin_hooks() { // Admin functionality require_once SEOPROSTACK_PLUGIN_DIR . 'admin/class-seoprostack-admin.php'; $admin = new SEOProStack_Admin(); $admin->initialize(); } /** * Register all of the hooks related to plugin features. */ private function define_features() { // Auto Upload feature require_once SEOPROSTACK_PLUGIN_DIR . 'includes/features/auto-upload/class-seoprostack-auto-upload.php'; $auto_upload = new SEOProStack_Auto_Upload(); } /** * Run the loader to execute all of the hooks with WordPress. */ public function run() { $this->loader->run(); } }