Inventory_Presser_Taxonomy_Overlapper::update_transmission_speeds_meta( mixed $object_id, mixed $taxonomy, mixed $term )

update_transmission_speeds_meta

Description Description

When a relationship in the Transmissions taxonomy is changed, update a post meta value that holds the transmission speeds, too.


Top ↑

Parameters Parameters

$object_id

(mixed) (Required)

$taxonomy

(mixed) (Required)

$term

(mixed) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-taxonomy-overlapper.php

	public function update_transmission_speeds_meta( $object_id, $taxonomy, $term ) {
		if ( 'transmission' != strtolower( $taxonomy ) ) {
			return;
		}
		update_post_meta( $object_id, apply_filters( 'invp_prefix_meta_key', 'transmission_speeds' ), $this->extract_speeds( $term->name ) );
	}