WP_Taxonomy::remove_hooks() WordPress Method

The WP_Taxonomy::remove_hooks() function is used to remove all registered hooks from a given taxonomy. This is typically done when unregistering a taxonomy.

WP_Taxonomy::remove_hooks() #

Removes the ajax callback for the meta box.


Source

File: wp-includes/class-wp-taxonomy.php

	public function remove_hooks() {
		remove_filter( 'wp_ajax_add-' . $this->name, '_wp_ajax_add_hierarchical_term' );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.