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

	protected function include_dependencies() {
		// include composer dependencies.
		include_once '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-customize-dashboard.php',
			'admin/class-admin-editor-sidebar.php',
			'admin/class-admin-location-meta.php',
			'admin/class-admin-options.php',
			'admin/class-admin-settings-suggester.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-redirect-404-vehicles.php',
			'class-rest.php',
			'class-schema-org-generator.php',
			'integrations/class-wp-all-import.php',
			'integrations/class-contact-form-7.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-uninstaller.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( __FILE__ ) . 'includes/' . $file_name;
			if ( file_exists( $path ) ) {
				include $path;
			}
		}
	}