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.


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 of the term field.
Term ID.
Taxonomy slug.


Since 2.3.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.