WordPress at a glance
filter is not described

wp_update_term_parent filter-hook . WP 3.1.0

Filters the term parent.

Hook to this filter to see if it will cause a hierarchy loop.


add_filter( 'wp_update_term_parent', 'filter_function_name_6328', 10, 5 );
function filter_function_name_6328( $parent, $term_id, $taxonomy, $parsed_args, $args ){
	// filter...

	return $parent;
ID of the parent term.
Term ID.
Taxonomy slug.
An array of potentially altered update arguments for the given term.
An array of update arguments for the given term.

Where the hook is called

wp-includes/taxonomy.php 2698
$parent = apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args );

Where the hook is used (in WP core)

wp-includes/default-filters.php 152
add_filter( 'wp_update_term_parent', 'wp_check_term_hierarchy_for_loops', 10, 3 );