Inventory_Presser_Plugin::include_dependencies()

Includes all the includes! This function loads all the other PHP files that contain this plugin’s code.


Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

		 * Includes all the includes! This function loads all the other PHP files
		 * that contain this plugin's code.
		 *
		 * @return void
		 */
		protected function include_dependencies() {
			// include composer dependencies.
			include_once plugin_dir_path( INVP_PLUGIN_FILE_PATH ) . 'vendor/autoload.php';

			// Include our object definition dependencies.
			$file_names = array(
				'class-add-custom-fields-to-search.php',
				'addon/class-addon-license-validator.php',
				'addon/class-addon-license.php',
				'addon/class-addon-updater.php',
				'addon/class-addon.php',
				'admin/class-admin-bar.php',
				'admin/class-admin-editor-sidebar.php',
				'admin/class-admin-location-meta.php',
				'admin/class-admin-options.php',
				'admin/class-admin-photo-arranger.php',
				'admin/class-admin-posts-list.php',
				'class-additional-listings-pages.php',
				'class-allow-inventory-as-home-page.php',
				'class-badges.php',
				'class-blocks.php',
				'class-business-day.php',
				'class-invp.php',
				'class-menu-item-email-a-friend.php',
				'class-menu-item-print.php',
				'class-option-manager.php',
				'class-photo-numberer.php',
				'class-range-filters.php',
				'class-redirect-404-vehicles.php',
				'class-rest.php',
				'class-schema-org-generator.php',
				'class-site-health.php',
				'integrations/class-avada.php',
				'integrations/class-classic-editor.php',
				'integrations/class-forms-integration.php',
				'integrations/class-contact-form-7.php',
				'integrations/class-gravityforms-field-vehicle.php',
				'integrations/class-wp-all-import.php',
				'integrations/class-wpforms.php',
				'shortcode/class-shortcode-hours-today.php',
				'shortcode/class-shortcode-iframe.php',
				'shortcode/class-shortcode-inventory-grid.php',
				'shortcode/class-shortcode-inventory-slider.php',
				'shortcode/class-shortcode-photo-slider.php',
				'shortcode/class-shortcode-archive.php',
				'shortcode/class-shortcode-archive-vehicle.php',
				'shortcode/class-shortcode-attribute-table.php',
				'shortcode/class-shortcode-single-vehicle.php',
				'shortcode/class-shortcode-sort-by.php',
				'shortcode/class-shortcode-vin.php',
				'class-taxonomies.php',
				'class-taxonomy-overlapper.php',
				'class-template-provider.php',
				'class-vehicle-urls-by-vin.php',
				'widget/class-widget-address.php',
				'widget/class-widget-carfax.php',
				'widget/class-widget-fuel-economy.php',
				'widget/class-widget-google-maps.php',
				'widget/class-widget-google-maps-v3.php',
				'widget/class-widget-hours.php',
				'widget/class-widget-inventory-grid.php',
				'widget/class-widget-inventory-slider.php',
				'widget/class-widget-kbb.php',
				'widget/class-widget-map.php',
				'widget/class-widget-order-by.php',
				'widget/class-widget-phones.php',
				'widget/class-widget-maximum-price-filter.php',
				'template-tags.php',
			);
			foreach ( $file_names as $file_name ) {
				$path = plugin_dir_path( INVP_PLUGIN_FILE_PATH ) . 'includes/' . $file_name;