Inventory_Presser_Taxonomy_Overlapper::hooks_add_meta()

On This Page


Source Source

File: includes/class-taxonomy-overlapper.php

	function hooks_add_meta() {
		/**
		 * When certain post meta fields like make & model are updated, also
		 * maintain terms in taxonomies to make filtering vehicles easy.
		 */
		add_action( 'updated_postmeta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );
		add_action( 'added_post_meta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );
		add_action( 'deleted_post_meta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );
	}