WP_Taxonomy::add_hooks
Registers the ajax callback for the meta box.
Method of the class: WP_Taxonomy{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Taxonomy = new WP_Taxonomy(); $WP_Taxonomy->add_hooks();
Changelog
| Since 4.7.0 | Introduced. |
WP_Taxonomy::add_hooks() WP Taxonomy::add hooks code WP 6.9.1
public function add_hooks() {
add_filter( 'wp_ajax_add-' . $this->name, '_wp_ajax_add_hierarchical_term' );
}