Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: delete_term

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2500       *
2501       * @since 2.5.0
2502       *
2503       * @param int     $term         Term ID.
2504       * @param int     $tt_id        Term taxonomy ID.
2505       * @param string  $taxonomy     Taxonomy slug.
2506       * @param mixed   $deleted_term Copy of the already-deleted term, in the form specified
2507       *                              by the parent function. WP_Error otherwise.
2508       */
2509      do_action( 'delete_term', $term, $tt_id, $taxonomy, $deleted_term );
2510
2511      /**
2512       * Fires after a term in a specific taxonomy is deleted.
2513       *
2514       * The dynamic portion of the hook name, `$taxonomy`, refers to the specific
2515       * taxonomy the term belonged to.
2516       *
2517       * @since 2.3.0
2518       *