WordPress at a glance
filter is not described

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

Filters the taxonomy field to edit before it is sanitized.

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


add_filter( 'edit_(taxonomy)_(field)', 'filter_function_name_819', 10, 2 );
function filter_function_name_819( $value, $term_id ){
	// filter...

	return $value;
Value of the taxonomy field to edit.
Term ID.

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

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

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

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

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

wp-admin/edit-form-advanced.php 80
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-admin/includes/meta-boxes.php 1459
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/class-wp-embed.php 43
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/class-wp-embed.php 44
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/default-filters.php 451
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );