WordPress at a glance
filter is not described

get_(taxonomy) filter-hook . WP 2.3.0

Filters a taxonomy.

The dynamic portion of the filter name, $taxonomy, refers to the taxonomy slug.

Usage

add_filter( 'get_(taxonomy)', 'filter_function_name_7678', 10, 2 );
function filter_function_name_7678( $_term, $taxonomy ){
	// filter...

	return $_term;
}
$_term(int/WP_Term)
Term object or ID.
$taxonomy(string)
The taxonomy slug.

Notes

  • Since 4.4.0 $_term can now also be a WP_Term object.

Where the hook is called

get_term()
wp-includes/taxonomy.php 805
$_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy );

Where the hook is used (in WP core)

wp-includes/default-filters.php 101
add_filter( 'get_term_metadata', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 105
add_filter( 'get_term_metadata_by_mid', 'wp_check_term_meta_support_prefilter' );
wp-includes/default-filters.php 172
add_filter( 'get_the_excerpt', 'wp_trim_excerpt' );
wp-includes/default-filters.php 469
add_filter( 'get_post_format', '_post_format_get_term' );
wp-includes/default-filters.php 470
add_filter( 'get_terms', '_post_format_get_terms', 10, 3 );
wp-includes/revision.php 533
add_filter( 'get_the_terms', '_wp_preview_terms_filter', 10, 3 );
wp-includes/revision.php 534
add_filter( 'get_post_metadata', '_wp_preview_post_thumbnail_filter', 10, 3 );
wp-includes/class-wp-customize-manager.php 1862
add_filter( 'get_edit_post_link', '__return_empty_string' );
wp-admin/includes/ms-admin-filters.php 26
add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );
wp-admin/includes/class-wp-site-icon.php 73
add_filter( 'get_post_metadata', array( $this, 'get_post_metadata' ), 10, 4 );