edit_term_(field) filter-hookWP 2.3.0

Filters a term field to edit before it is sanitized.

The dynamic portion of the hook name, $field, refers to the term field.

Usage

add_filter( 'edit_term_(field)', 'wp_kama_edit_term_field_filter', 10, 3 );

/**
 * Function for `edit_term_(field)` filter-hook.
 * 
 * @param mixed  $value    Value of the term field.
 * @param int    $term_id  Term ID.
 * @param string $taxonomy Taxonomy slug.
 *
 * @return mixed
 */
function wp_kama_edit_term_field_filter( $value, $term_id, $taxonomy ){

	// filter...
	return $value;
}
$value(mixed)
Value of the term field.
$term_id(int)
Term ID.
$taxonomy(string)
Taxonomy slug.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

sanitize_term_field()
edit_term_(field)
wp-includes/taxonomy.php 1783
$value = apply_filters( "edit_term_{$field}", $value, $term_id, $taxonomy );

Where the hook is used in WordPress

Usage not found.