Inventory_Presser_Admin_Customize_Dashboard::save_vehicle_taxonomy_terms( int $post_id, bool $is_update )

save_vehicle_taxonomy_terms


Description Description

Saves custom taxonomy terms when vehicles are saved


Top ↑

Parameters Parameters

$post_id

(int) (Required)

$is_update

(bool) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/class-admin-customize-dashboard.php

	function save_vehicle_taxonomy_terms( $post_id, $is_update ) {
		foreach ( $this->taxonomies_slugs_array() as $slug ) {
			$taxonomy_name = $slug;
			switch ( $slug ) {
				case 'style':
					$slug = 'body_style';
					break;
				case 'model_year':
					$slug = 'year';
					break;
			}
			$this->save_taxonomy_term( $post_id, $taxonomy_name, apply_filters( 'invp_prefix_meta_key', $slug ) );
		}
	}