Title: edit_{$field}
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( “edit_{$field}”, mixed $value, int $post_id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#wp--skip-link--target)

Filters the value of a specific post field to edit.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$field`, refers to the post field name. Possible
filter names include:

 * `edit_post_author`
 * `edit_post_date`
 * `edit_post_date_gmt`
 * `edit_post_content`
 * `edit_post_title`
 * `edit_post_excerpt`
 * `edit_post_status`
 * `edit_post_password`
 * `edit_post_name`
 * `edit_post_modified`
 * `edit_post_modified_gmt`
 * `edit_post_content_filtered`
 * `edit_post_parent`
 * `edit_post_type`
 * `edit_post_mime_type`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#parameters)󠁿

 `$value`mixed

Value of the post field.

`$post_id`int

Post ID.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#source)󠁿

    ```php
    $value = apply_filters( "edit_{$field}", $value, $post_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/post.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/post.php#L3022)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/post.php#L3022-L3022)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#related)󠁿

| Used by | Description | 
| [sanitize_user_field()](https://developer.wordpress.org/reference/functions/sanitize_user_field/)`wp-includes/user.php` |

Sanitizes user field based on context.

  | 
| [sanitize_post_field()](https://developer.wordpress.org/reference/functions/sanitize_post_field/)`wp-includes/post.php` |

Sanitizes a post field based on context.

  | 
| [sanitize_bookmark_field()](https://developer.wordpress.org/reference/functions/sanitize_bookmark_field/)`wp-includes/bookmark.php` |

Sanitizes a bookmark field.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/edit_field/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.3.0](https://developer.wordpress.org/reference/since/2.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedit_field%2F)
before being able to contribute a note or feedback.