WP_Taxonomy::add_hooks() WordPress Method

The WP_Taxonomy::add_hooks() method is used to attach hooks to a taxonomy. This is typically used for custom taxonomies.

WP_Taxonomy::add_hooks() #

Registers the ajax callback for the meta box.


Source

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

	public function add_hooks() {
		add_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.