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