Filters the value of a specific post field to edit.
Only applied to post fields not prefixed with post_.
The dynamic portion of the hook name, $field, refers to the post field name. Possible filter names include:
edit_post_IDedit_post_ping_statusedit_post_pingededit_post_to_pingedit_post_comment_countedit_post_comment_statusedit_post_guidedit_post_menu_order$valuemixed
$post_idint
$value = apply_filters( "edit_post_{$field}", $value, $post_id );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_post_field