edit_(field) filter-hook . WP 2.3.0
Filters the value of a specific post field to edit.
The dynamic portion of the hook name, $field, refers to the post field name.
Usage
add_filter( 'edit_(field)', 'filter_function_name_9481', 10, 2 ); function filter_function_name_9481( $value, $post_id ){ // filter... return $value; }
- $value(mixed)
- Value of the post field.
- $post_id(int)
- Post ID.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
edit_(field)
wp-includes/post.php 2427
$value = apply_filters( "edit_{$field}", $value, $post_id );
wp-includes/user.php 1457
$value = apply_filters( "edit_{$field}", $value, $user_id );
wp-includes/bookmark.php 427
$value = apply_filters( "edit_{$field}", $value, $bookmark_id );
Where in WP core the hook is used WordPress
wp-includes/post.php 82
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-includes/post.php 1459
add_action( 'edit_form_after_title', 'edit_form_image_editor' );
wp-includes/post.php 43
add_action( 'edit_form_advanced', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/post.php 44
add_action( 'edit_page_form', array( $this, 'maybe_run_ajax_cache' ) );
wp-includes/post.php 460
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );