Action hook 'edited_term_taxonomies'

in WP Core File wp-includes/taxonomy.php at line 2117

View Source

edited_term_taxonomies

Action Hook
Description
Fires immediately after a term to delete's children are reassigned a parent.

Hook Information

File Location wp-includes/taxonomy.php View on GitHub
Hook Type Action
Line Number 2117

Hook Parameters

Type Name Description
array $edit_tt_ids An array of term taxonomy IDs for the given term.

Usage Examples

Basic Usage
<?php
// Hook into edited_term_taxonomies
add_action('edited_term_taxonomies', 'my_custom_function', 10, 1);

function my_custom_function($edit_tt_ids) {
    // Your custom code here
}

Source Code Context

wp-includes/taxonomy.php:2117 - How this hook is used in WordPress core
<?php
2112  		 *
2113  		 * @since 2.9.0
2114  		 *
2115  		 * @param array $edit_tt_ids An array of term taxonomy IDs for the given term.
2116  		 */
2117  		do_action( 'edited_term_taxonomies', $edit_tt_ids );
2118  	}
2119  
2120  	// Get the term before deleting it or its term relationships so we can pass to actions below.
2121  	$deleted_term = get_term( $term, $taxonomy );
2122  

PHP Documentation

<?php
/**
		 * Fires immediately after a term to delete's children are reassigned a parent.
		 *
		 * @since 2.9.0
		 *
		 * @param array $edit_tt_ids An array of term taxonomy IDs for the given term.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/taxonomy.php
Related Hooks

Related hooks will be displayed here in future updates.