Filters the value of a specific post field to edit.
Description
The dynamic portion of the hook name, $field, refers to the post field name. Possible filter names include:
edit_post_authoredit_post_dateedit_post_date_gmtedit_post_contentedit_post_titleedit_post_excerptedit_post_statusedit_post_passwordedit_post_nameedit_post_modifiededit_post_modified_gmtedit_post_content_filterededit_post_parentedit_post_typeedit_post_mime_type
Parameters
$valuemixed- Value of the post field.
$post_idint- Post ID.
Source
$value = apply_filters( "edit_{$field}", $value, $post_id );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.