Title: WP_Taxonomy::remove_hooks
Published: December 6, 2016
Last modified: August 20, 2026

---

# WP_Taxonomy::remove_hooks()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#wp--skip-link--target)

Removes the ajax callback for the meta box.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#source)󠁿

    ```php
    public function remove_hooks() {
    	remove_filter( 'wp_ajax_add-' . $this->name, '_wp_ajax_add_hierarchical_term' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-taxonomy.php#L555)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-taxonomy.php#L555-L557)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#related)󠁿

| Uses | Description | 
| [remove_filter()](https://developer.wordpress.org/reference/functions/remove_filter/)`wp-includes/plugin.php` |

Removes a callback function from a filter hook.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_taxonomy/remove_hooks/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_taxonomy%2Fremove_hooks%2F)
before being able to contribute a note or feedback.