Inventory_Presser_Admin_Customize_Dashboard::save_vehicle_taxonomy_terms( int $post_id, bool $is_update )
save_vehicle_taxonomy_terms
Contents
Description Description
Saves custom taxonomy terms when vehicles are saved
Parameters Parameters
- $post_id
-
(int) (Required)
- $is_update
-
(bool) (Required)
Return Return
(void)
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 ) ); } }
Expand full source code Collapse full source code View on Github