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

delete_transmission_speeds_meta


Description Description

When a relationship in the Transmissions taxonomy is deleted, delete 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 delete_transmission_speeds_meta( $object_id, $taxonomy, $term )
	{
		if( 'transmission' != strtolower( $taxonomy ) )
		{
			return;
		}
		delete_post_meta( $object_id, apply_filters( 'invp_prefix_meta_key', 'transmission_speeds' ), $this->extract_speeds( $term->name ) );
	}