Filter hook 'wp_update_term_parent'

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

Description

Filters the term parent. Hook to this filter to see if it will cause a hierarchy loop.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 3299

Parameters

Type Name Description
int $parent_term ID of the parent term.
int $term_id Term ID.
string $taxonomy Taxonomy slug.
array $parsed_args An array of potentially altered update arguments for the given term.
array $args Arguments passed to wp_update_term().

PHP Doc

/**
	 * Filters the term parent.
	 *
	 * Hook to this filter to see if it will cause a hierarchy loop.
	 *
	 * @since 3.1.0
	 *
	 * @param int    $parent_term ID of the parent term.
	 * @param int    $term_id     Term ID.
	 * @param string $taxonomy    Taxonomy slug.
	 * @param array  $parsed_args An array of potentially altered update arguments for the given term.
	 * @param array  $args        Arguments passed to wp_update_term().
	 */