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' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |