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

Saves custom taxonomy terms when vehicles are saved


Parameters Parameters

$post_id

(int) (Required) A post ID.

$is_update

(bool) (Required) True if this is a post update rather than an insert.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

			// Clear this value that is defined by a checkbox.
			update_post_meta( $post_id, apply_filters( 'invp_prefix_meta_key', 'featured' ), '0' );

			/**
			 * Loop over the post meta keys we manage and save their values
			 * if we find them coming over as part of the post to save.
			 */
			$keys   = INVP::keys();
			$keys[] = 'options_array';

			foreach ( $keys as $key ) {
				$key = apply_filters( 'invp_prefix_meta_key', $key );
				if ( isset( $_POST[ $key ] ) ) {
					if ( is_array( $_POST[ $key ] ) ) {