Inventory_Presser_Taxonomy_Overlapper::hooks_remove()

hooks_remove


Description Description

This is the inverse to hooks_add(). It removes all the hooks this class adds.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-taxonomy-overlapper.php

	function hooks_remove()
	{
		remove_action( 'updated_postmeta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );
		remove_action( 'added_post_meta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );
		remove_action( 'deleted_post_meta', array( $this, 'maintain_taxonomy_terms_during_meta_updates' ), 10, 4 );

		//Do the same when taxonomy term relationships are changed
		remove_action( 'set_object_terms', array( $this, 'term_relationship_updated' ), 10, 6 );
		remove_action( 'delete_term_relationships', array( $this, 'term_relationship_deleted' ), 10, 3 );
	}