WordPress at Your Fingertips
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_375', 10, 5 );
function filter_function_name_375( $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.


Since 3.1.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

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