wppaste
WordPress

apply_filters( "{$taxonomy}_{$field}", mixed $value, int $term_id, string $context )

Since
2.3.0
Filters the taxonomy field sanitized for display.

Description

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

Parameters

$valuemixed
Value of the taxonomy field.
$term_idint
Term ID.
$contextstring
Context to retrieve the taxonomy field value.

Fired at · 1

  • wp-includes/taxonomy.php:1927sanitize_term_field()

Source

		 * @since 2.3.0		 *		 * @param mixed  $value   Value of the taxonomy field.		 * @param int    $term_id Term ID.		 * @param string $context Context to retrieve the taxonomy field value.		 */		$value = apply_filters( "{$taxonomy}_{$field}", $value, $term_id, $context );	} 	if ( 'attribute' === $context ) {		$value = esc_attr( $value );	} elseif ( 'js' === $context ) {		$value = esc_js( $value );

History

Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.