edit_(taxonomy)_(field)
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.
Usage
add_filter( 'edit_(taxonomy)_(field)', 'wp_kama_edit_taxonomy_field_filter', 10, 2 ); /** * Function for `edit_(taxonomy)_(field)` filter-hook. * * @param mixed $value Value of the taxonomy field to edit. * @param int $term_id Term ID. * * @return mixed */ function wp_kama_edit_taxonomy_field_filter( $value, $term_id ){ // filter... return $value; }
- $value(mixed)
- Value of the taxonomy field to edit.
- $term_id(int)
- Term ID.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
edit_(taxonomy)_(field)
wp-includes/taxonomy.php 1771
$value = apply_filters( "edit_{$taxonomy}_{$field}", $value, $term_id );
Where the hook is used in WordPress
wp-admin/edit-form-advanced.php 82
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-admin/includes/admin-filters.php 90
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
wp-admin/includes/admin-filters.php 91
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
wp-admin/includes/meta-boxes.php 1591
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/class-wp-embed.php 46
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/class-wp-embed.php 47
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/default-filters.php 507
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );