W3cubDocs

/WordPress

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' );
	}

Changelog

Version Description
4.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks