edit_term_(field) хук-фильтрWP 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(разное)
Value of the term field.
$term_id(int)
Term ID.
$taxonomy(строка)
Taxonomy slug.

Список изменений

С версии 2.3.0 Введена.

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

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

Где используется хук в WordPress

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