Inventory_Presser_Taxonomies::taxonomy_data()

An array of taxonomy data used during registration and default term population


Return

(array)


Source

File: includes/class-taxonomies.php

	public static function taxonomy_data() {
		return apply_filters(
			'invp_taxonomy_data',
			array(
				array(
					'args' => array(
						'hierarchical'   => true,
						'label'          => __( 'Model years', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Model years', 'inventory-presser' ),
							'singular_name' => __( 'Model year', 'inventory-presser' ),
							'search_items'  => __( 'Search years', 'inventory-presser' ),
							'popular_items' => __( 'Popular years', 'inventory-presser' ),
							'all_items'     => __( 'All years', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Model Year', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Model Year', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Model Year', 'inventory-presser' ),
							'new_item_name' => __( 'New Model Year', 'inventory-presser' ),
							'back_to_items' => __( '← Go to years', 'inventory-presser' ),
						),
						'meta_box_cb'    => null,
						'query_var'      => 'model-year',
						'singular_label' => __( 'Model year', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
				),
				array(
					'args' => array(
						'hierarchical'   => true,
						'label'          => __( 'Makes', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Makes', 'inventory-presser' ),
							'singular_name' => __( 'Make', 'inventory-presser' ),
							'search_items'  => __( 'Search makes', 'inventory-presser' ),
							'popular_items' => __( 'Popular makes', 'inventory-presser' ),
							'all_items'     => __( 'All makes', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Make', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Make', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Make', 'inventory-presser' ),
							'new_item_name' => __( 'New Make Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to makes', 'inventory-presser' ),
						),
						'meta_box_cb'    => null,
						'query_var'      => 'make',
						'singular_label' => __( 'Make', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
				),
				array(
					'args' => array(
						'hierarchical'   => true,
						'label'          => __( 'Models', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Models', 'inventory-presser' ),
							'singular_name' => __( 'Model', 'inventory-presser' ),
							'search_items'  => __( 'Search models', 'inventory-presser' ),
							'popular_items' => __( 'Popular models', 'inventory-presser' ),
							'all_items'     => __( 'All models', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Model', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Model', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Model', 'inventory-presser' ),
							'new_item_name' => __( 'New Model Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to models', 'inventory-presser' ),
						),
						'meta_box_cb'    => null,
						'query_var'      => 'model',
						'singular_label' => __( 'Model', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Conditions', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Conditions', 'inventory-presser' ),
							'singular_name' => __( 'Condition', 'inventory-presser' ),
							'search_items'  => __( 'Search new and used', 'inventory-presser' ),
							'popular_items' => __( 'Popular conditions', 'inventory-presser' ),
							'all_items'     => __( 'All new and used', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Condition', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Condition', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Condition', 'inventory-presser' ),
							'new_item_name' => __( 'New Condition Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to conditions', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_condition' ),
						'query_var'      => 'condition',
						'singular_label' => __( 'Condition', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'New'  => 'New',
						'Used' => 'Used',
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Types', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Types', 'inventory-presser' ),
							'singular_name' => __( 'Type', 'inventory-presser' ),
							'search_items'  => __( 'Search types', 'inventory-presser' ),
							'popular_items' => __( 'Popular types', 'inventory-presser' ),
							'all_items'     => __( 'All types', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Type', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Type', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Type', 'inventory-presser' ),
							'new_item_name' => __( 'New Type Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to types', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_type' ),
						'query_var'      => 'type',
						'rest_base'      => 'inventory_type',
						'singular_label' => __( 'Type', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'ATV'  => 'All Terrain Vehicle',
						'BOAT' => 'Boat',
						'BUS'  => 'Bus',
						'CAR'  => 'Passenger Car',
						'MOT'  => 'Motorcycle',
						'MOW'  => 'Mower',
						'OTH'  => 'Other',
						'RV'   => 'Recreational Vehicle',
						'SUV'  => 'Sport Utility Vehicle',
						'TRLR' => 'Trailer',
						'TRU'  => 'Truck',
						'VAN'  => 'Van',
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Availabilities', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Availabilities', 'inventory-presser' ),
							'singular_name' => __( 'Availability', 'inventory-presser' ),
							'search_items'  => __( 'Search availabilities', 'inventory-presser' ),
							'popular_items' => __( 'Popular availabilities', 'inventory-presser' ),
							'all_items'     => __( 'All sold and for sale', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Availability', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Availability', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Availability', 'inventory-presser' ),
							'new_item_name' => __( 'New Availability Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to availabilities', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_availability' ),
						'query_var'      => 'availability',
						'singular_label' => __( 'Availability', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'For sale'  => 'For sale',
						'Sold'      => 'Sold',
						'Wholesale' => 'Wholesale',
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Drive types', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Drive types', 'inventory-presser' ),
							'singular_name' => __( 'Drive type', 'inventory-presser' ),
							'search_items'  => __( 'Search drive types', 'inventory-presser' ),
							'popular_items' => __( 'Popular drive types', 'inventory-presser' ),
							'all_items'     => __( 'All drive types', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Drive Type', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Drive Type', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Drive Type', 'inventory-presser' ),
							'new_item_name' => __( 'New Drive Type Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to drive types', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_drive_type' ),
						'query_var'      => 'drive-type',
						'singular_label' => __( 'Drive type', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'4FD' => 'Front Wheel Drive w/4x4',
						'4RD' => 'Rear Wheel Drive w/4x4',
						'2WD' => 'Two Wheel Drive',
						'4WD' => 'Four Wheel Drive',
						'AWD' => 'All Wheel Drive',
						'FWD' => 'Front Wheel Drive',
						'RWD' => 'Rear Wheel Drive',
					),
				),

				/**
				* Propulsion type is essentially drive type for boats
				*/

				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Propulsion types', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Propulsion types', 'inventory-presser' ),
							'singular_name' => __( 'Propulsion type', 'inventory-presser' ),
							'search_items'  => __( 'Search propulsion types', 'inventory-presser' ),
							'popular_items' => __( 'Popular propulsion types', 'inventory-presser' ),
							'all_items'     => __( 'All propulsion types', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Propulsion Type', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Propulsion Type', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Propulsion Type', 'inventory-presser' ),
							'new_item_name' => __( 'New Propulsion Type Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to propulsion types', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_propulsion_type' ),
						'query_var'      => 'propulsion-type',
						'singular_label' => __( 'Propulsion type', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'IN'  => 'Inboard',
						'OUT' => 'Outboard',
						'IO'  => 'Inboard/Outboard',
						'JET' => 'Jet',
					),
				),

				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Fuels', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Fuel types', 'inventory-presser' ),
							'singular_name' => __( 'Fuel type', 'inventory-presser' ),
							'search_items'  => __( 'Search fuel types', 'inventory-presser' ),
							'popular_items' => __( 'Popular fuel types', 'inventory-presser' ),
							'all_items'     => __( 'All fuel types', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Fuel Type', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Fuel Type', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Fuel Type', 'inventory-presser' ),
							'new_item_name' => __( 'New Fuel Type Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to fuel types', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_fuel' ),
						'query_var'      => 'fuel',
						'singular_label' => __( 'Fuel', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'B' => 'Electric and Gas Hybrid',
						'C' => 'Convertible',
						'D' => 'Diesel',
						'E' => 'Electric',
						'F' => 'Flexible',
						'G' => 'Gas',
						'N' => 'Compressed Natural Gas',
						'P' => 'Propane',
						'R' => 'Hydrogen Fuel Cell',
						'U' => 'Unknown',
						'Y' => 'Electric and Diesel Hybrid',
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Transmissions', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Transmissions', 'inventory-presser' ),
							'singular_name' => __( 'Transmission', 'inventory-presser' ),
							'search_items'  => __( 'Search transmissions', 'inventory-presser' ),
							'popular_items' => __( 'Popular transmissions', 'inventory-presser' ),
							'all_items'     => __( 'All transmissions', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Transmission', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Transmission', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Transmission', 'inventory-presser' ),
							'new_item_name' => __( 'New Transmission Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to transmissions', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_transmission' ),
						'query_var'      => 'transmission',
						'singular_label' => __( 'Transmission', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'A' => 'Automatic',
						'E' => 'ECVT',
						'M' => 'Manual',
						'U' => 'Unknown',
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Cylinders', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Cylinders', 'inventory-presser' ),
							'singular_name' => __( 'Cylinder count', 'inventory-presser' ),
							'search_items'  => __( 'Search cylinder counts', 'inventory-presser' ),
							'popular_items' => __( 'Popular cylinder counts', 'inventory-presser' ),
							'all_items'     => __( 'All cylinder counts', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Cylinder Count', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Cylinder Count', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Cylinder Count', 'inventory-presser' ),
							'new_item_name' => __( 'New Cylinder Count', 'inventory-presser' ),
							'back_to_items' => __( '← Go to cylinder counts', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_cylinders' ),
						'query_var'      => 'cylinders',
						'singular_label' => __( 'Cylinders', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'1'  => '1',
						'2'  => '2',
						'3'  => '3',
						'4'  => '4',
						'5'  => '5',
						'6'  => '6',
						'8'  => '8',
						'10' => '10',
						'12' => '12',
					),
				),
				array(
					'args' => array(
						'hierarchical'   => true,
						'label'          => __( 'Body styles', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Body styles', 'inventory-presser' ),
							'singular_name' => __( 'Body style', 'inventory-presser' ),
							'search_items'  => __( 'Search body styles', 'inventory-presser' ),
							'popular_items' => __( 'Popular body styles', 'inventory-presser' ),
							'all_items'     => __( 'All body styles', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Body Style', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Body Style', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Body Style', 'inventory-presser' ),
							'new_item_name' => __( 'New Body Style Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to body styles', 'inventory-presser' ),
						),
						'meta_box_cb'    => null,
						'query_var'      => 'style',
						'singular_label' => __( 'Body style', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
				),
				array(
					'args'      => array(
						'hierarchical'   => true,
						'label'          => __( 'Colors', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Color', 'inventory-presser' ),
							'singular_name' => __( 'Color', 'inventory-presser' ),
							'search_items'  => __( 'Search colors', 'inventory-presser' ),
							'popular_items' => __( 'Popular colors', 'inventory-presser' ),
							'all_items'     => __( 'All colors', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Color', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Color', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Color', 'inventory-presser' ),
							'new_item_name' => __( 'New Color Name', 'inventory-presser' ),
							'back_to_items' => __( '← Go to colors', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_colors' ),
						'query_var'      => 'colors',
						'singular_label' => __( 'Color', 'inventory-presser' ),
						'show_in_menu'   => false,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
					'term_data' => array(
						'Beige'    => 'Beige',
						'Black'    => 'Black',
						'Blue'     => 'Blue',
						'Brown'    => 'Brown',
						'Burgundy' => 'Burgundy',
						'Gold'     => 'Gold',
						'Grey'     => 'Grey',
						'Green'    => 'Green',
						'Ivory'    => 'Ivory',
						'Orange'   => 'Orange',
						'Purple'   => 'Purple',
						'Red'      => 'Red',
						'Silver'   => 'Silver',
						'White'    => 'White',
						'Yellow'   => 'Yellow',
					),
				),
				array(
					'args' => array(
						'hierarchical'   => false,
						'label'          => __( 'Locations', 'inventory-presser' ),
						'labels'         => array(
							'name'          => __( 'Location', 'inventory-presser' ),
							'singular_name' => __( 'Location', 'inventory-presser' ),
							'search_items'  => __( 'Search locations', 'inventory-presser' ),
							'popular_items' => __( 'Popular locations', 'inventory-presser' ),
							'all_items'     => __( 'All locations', 'inventory-presser' ),
							'parent_item'   => __( 'Parent Location', 'inventory-presser' ),
							'edit_item'     => __( 'Edit Location', 'inventory-presser' ),
							'view_item'     => __( 'View Location', 'inventory-presser' ),
							'update_item'   => __( 'Update Location', 'inventory-presser' ),
							'add_new_item'  => __( 'Add New Location', 'inventory-presser' ),
							'new_item_name' => __( 'New Location Name', 'inventory-presser' ),
							'not_found'     => __( 'No locations found', 'inventory-presser' ),
							'no_terms'      => __( 'No locations', 'inventory-presser' ),
							'menu_name'     => __( 'Locations', 'inventory-presser' ),
							'back_to_items' => __( '← Go to locations', 'inventory-presser' ),
						),
						'meta_box_cb'    => array( 'Inventory_Presser_Taxonomies', 'meta_box_html_locations' ),
						'query_var'      => 'location',
						'singular_label' => __( 'Location', 'inventory-presser' ),
						'show_in_menu'   => true,
						'show_in_rest'   => true,
						'show_ui'        => true,
					),
				),
			)
		);
	}