edit_(field) хук-фильтр . 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.
Использование
add_filter( 'edit_(field)', 'filter_function_name_2536', 10, 2 ); function filter_function_name_2536( $value, $post_id ){ // filter... return $value; }
- $value(смешанный)
- Value of the post field.
- $post_id(число)
- Post ID.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
edit_(field)
wp-includes/post.php 2427
$value = apply_filters( "edit_{$field}", $value, $post_id );
wp-includes/bookmark.php 427
$value = apply_filters( "edit_{$field}", $value, $bookmark_id );
wp-includes/user.php 1457
$value = apply_filters( "edit_{$field}", $value, $user_id );
Где используется хук в ядре 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 );