WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

wp_insert_term_duplicate_term_check хук-фильтр . WP 5.1.0

Filters the duplicate term check that takes place during term creation.

Term parent+taxonomy+slug combinations are meant to be unique, and wp_insert_term() performs a last-minute confirmation of this uniqueness before allowing a new term to be created. Plugins with different uniqueness requirements may use this filter to bypass or modify the duplicate-term check.

Использование

add_filter( 'wp_insert_term_duplicate_term_check', 'filter_function_name_6279', 10, 5 );
function filter_function_name_6279( $duplicate_term, $term, $taxonomy, $args, $tt_id ){
	// filter...

	return $duplicate_term;
}
$duplicate_term(объект)
Duplicate term row from terms table, if found.
$term(строка)
Term being inserted.
$taxonomy(строка)
Taxonomy name.
$args(массив)
Term arguments passed to the function.
$tt_id(число)
term_taxonomy_id for the newly created term.

Где вызывается хук

wp_insert_term()
wp_insert_term_duplicate_term_check
wp-includes/taxonomy.php 2306
$duplicate_term = apply_filters( 'wp_insert_term_duplicate_term_check', $duplicate_term, $term, $taxonomy, $args, $tt_id );

Где используется хук (в ядре WP)

Использование не найдено.