WordPress at a glance
filter is not described

pre_(taxonomy)_(field) filter-hook . WP 2.3.0

Filters a taxonomy field before it is sanitized.

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

Usage

add_filter( 'pre_(taxonomy)_(field)', 'filter_function_name_8512' );
function filter_function_name_8512( $value ){
	// filter...

	return $value;
}
$value(mixed)
Value of the taxonomy field.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

wp-admin/includes/ajax-actions.php 1296
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-admin/includes/ajax-actions.php 1297
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-admin/includes/bookmark.php 316
add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
wp-admin/includes/bookmark.php 318
remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 );
wp-admin/options-discussion.php 298
add_filter( 'pre_option_show_avatars', '__return_true', 100 );
wp-admin/options-discussion.php 308
remove_filter( 'pre_option_show_avatars', '__return_true', 100 );
wp-includes/class-wp-customize-manager.php 718
remove_filter( 'pre_option_stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/class-wp-customize-manager.php 723
remove_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) );
wp-includes/class-wp-customize-manager.php 722
remove_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) );
wp-includes/class-wp-customize-manager.php 719
remove_filter( 'pre_option_template', array( $this, 'get_template' ) );
wp-includes/class-wp-customize-manager.php 684
add_filter( 'pre_option_stylesheet_root', array( $this, 'get_stylesheet_root' ) );
wp-includes/class-wp-customize-manager.php 715
remove_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );
wp-includes/class-wp-customize-manager.php 685
add_filter( 'pre_option_template_root', array( $this, 'get_template_root' ) );
wp-includes/class-wp-customize-manager.php 681
add_filter( 'pre_option_template', array( $this, 'get_template' ) );
wp-includes/class-wp-customize-manager.php 680
add_filter( 'pre_option_stylesheet', array( $this, 'get_stylesheet' ) );
wp-includes/class-wp-customize-manager.php 677
add_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );
wp-includes/class-wp-customize-setting.php 378
add_filter( "pre_option_{$id_base}", array( $this, '_preview_filter' ) );
wp-includes/class-wp-customize-widgets.php 2020
remove_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) );
wp-includes/class-wp-customize-widgets.php 1978
add_filter( "pre_option_{$option_name}", array( $this, 'capture_filter_pre_get_option' ) );
wp-includes/class-wp-customize-widgets.php 1959
add_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10, 3 );
wp-includes/class-wp-customize-widgets.php 2017
remove_filter( 'pre_update_option', array( $this, 'capture_filter_pre_update_option' ), 10 );
wp-includes/comment.php 3346
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/comment.php 3347
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/default-filters.php 415
add_filter( 'pre_option_embed_autourls', '__return_true' );
wp-includes/default-filters.php 95
add_filter( 'pre_post_mime_type', 'sanitize_mime_type' );
wp-includes/default-filters.php 86
add_filter( 'pre_term_slug', 'sanitize_title' );
wp-includes/default-filters.php 582
add_filter( 'pre_oembed_result', 'wp_filter_pre_oembed_result', 10, 3 );
wp-includes/default-filters.php 405
add_filter( 'pre_option_gmt_offset', 'wp_timezone_override_offset' );
wp-includes/default-filters.php 250
add_filter( 'pre_comment_content', 'wp_rel_ugc', 15 );
wp-includes/default-filters.php 246
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
wp-includes/default-filters.php 245
add_filter( 'pre_kses', 'wp_pre_kses_less_than' );
wp-includes/formatting.php 4945
remove_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10 );
wp-includes/formatting.php 4947
add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 );
wp-includes/kses.php 2009
add_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/kses.php 2011
add_filter( 'pre_comment_content', 'wp_filter_kses' );
wp-includes/kses.php 2037
remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
wp-includes/kses.php 2038
remove_filter( 'pre_comment_content', 'wp_filter_kses' );