. 'includes/feeds/class-woo-feed-generate.php'; /** * The class is a shipping calculation library */ require_once WOO_FEED_FREE_PATH . 'includes/classes/class-woo-feed-shipping.php'; /** * The class is a shipping calculation library */ require_once WOO_FEED_FREE_PATH . 'includes/class-woo-feed-status.php'; /** * The class responsible for save feed */ require_once WOO_FEED_FREE_PATH . 'includes/classes/class-woo-feed-savefile.php'; require_once WOO_FEED_FREE_PATH . 'includes/classes/class-woo-feed-admin-message.php'; /** * Merchant classes */ require_once WOO_FEED_FREE_PATH . 'includes/feeds/class-woo-feed-google.php'; require_once WOO_FEED_FREE_PATH . 'includes/feeds/class-woo-feed-facebook.php'; require_once WOO_FEED_FREE_PATH . 'includes/feeds/class-woo-feed-pinterest.php'; require_once WOO_FEED_FREE_PATH . 'includes/feeds/class-woo-feed-custom.php'; require_once WOO_FEED_FREE_PATH . 'includes/feeds/class-woo-feed-review.php'; /** * Docs Page Class */ require_once WOO_FEED_FREE_PATH . 'includes/class-woo-feed-docs.php'; /** * The class responsible for defining all actions that occur in the admin area. */ require_once WOO_FEED_FREE_PATH . 'admin/class-woo-feed-admin.php'; /** * The class responsible for making list table */ require_once WOO_FEED_FREE_PATH . 'includes/classes/class-woo-feed-list-table.php'; /** * The class responsible for making feed list */ require_once WOO_FEED_FREE_PATH . 'admin/class-woo-feed-manage-list.php'; /** * The class responsible for making feed list */ require_once WOO_FEED_FREE_PATH . 'admin/class-woo-feed-option-list.php'; /** * The class responsible for making category list */ require_once WOO_FEED_FREE_PATH . 'admin/class-woo-feed-category-list.php'; require_once WOO_FEED_FREE_PATH . 'includes/widget.php'; $this->loader = new Woo_Feed_Loader(); } /** * Define the locale for this plugin for internationalization. * * Uses the Woo_Feed_i18n class in order to set the domain and to register the hook * with WordPress. * * @since 1.0.0 * @access private */ private function set_locale() { $plugin_i18n = new Woo_Feed_i18n(); $plugin_i18n->set_domain( $this->get_woo_feed() ); $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); } /** * Register all of the hooks related to the admin area functionality * of the plugin. * * @since 1.0.0 * @access private */ private function define_admin_hooks() { $plugin_admin = new Woo_Feed_Admin( $this->get_woo_feed(), $this->get_version() ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); $this->loader->add_action( 'admin_menu', $plugin_admin, 'load_admin_pages' ); $this->loader->add_action( 'admin_page_access_denied', $plugin_admin, 'handle_old_menu_slugs' ); $this->loader->add_filter( 'plugin_action_links_' . WOO_FEED_PLUGIN_BASE_NAME, $plugin_admin, 'woo_feed_plugin_action_links' ); } /** * Run the loader to execute all of the hooks with WordPress. * * @since 1.0.0 */ public function run() { if ( wooFeed_check_WC() && wooFeed_is_WC_supported() ) { $this->load_dependencies(); $this->set_locale(); $this->define_admin_hooks(); $this->loader->run(); } } /** * The name of the plugin used to uniquely identify it within the context of * WordPress and to define internationalization functionality. * * @return string The name of the plugin. * @since 1.0.0 */ public function get_woo_feed() { return $this->woo_feed; } /** * The reference to the class that orchestrates the hooks with the plugin. * * @return Woo_Feed_Loader Orchestrates the hooks of the plugin. * @since 1.0.0 */ public function get_loader() { return $this->loader; } /** * Retrieve the version number of the plugin. * * @return string The version number of the plugin. * @since 1.0.0 */ public function get_version() { return $this->version; } }