Inventory_Presser_Taxonomy_Overlapper::delete_transmission_speeds_meta( int $object_id, string $taxonomy, WP_Term $term )
When a relationship in the Transmissions taxonomy is deleted, delete a post meta value that holds the transmission speeds, too.
On This Page
Parameters Parameters
- $object_id
-
(int) (Required) The vehicle post ID being updated.
- $taxonomy
-
(string) (Required) The taxonomy slug.
- $term
-
(WP_Term) (Required) The term object.
Return Return
(void)
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 ) ); }
Expand full source codeCollapse full source codeView on Github