(taxonomy)_(field) filter-hookWP 2.3.0

Filters the taxonomy field sanitized for display.

The dynamic portions of the filter name, $taxonomy, and $field, refer to the taxonomy slug and taxonomy field, respectively.

Usage

add_filter( '(taxonomy)_(field)', 'wp_kama_taxonomy_field_filter', 10, 3 );

/**
 * Function for `(taxonomy)_(field)` filter-hook.
 * 
 * @param mixed  $value   Value of the taxonomy field.
 * @param int    $term_id Term ID.
 * @param string $context Context to retrieve the taxonomy field value.
 *
 * @return mixed
 */
function wp_kama_taxonomy_field_filter( $value, $term_id, $context ){

	// filter...
	return $value;
}
$value(mixed)
Value of the taxonomy field.
$term_id(int)
Term ID.
$context(string)
Context to retrieve the taxonomy field value.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.