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' ); }
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_taxonomy/add_hooks