Filters the value of a specific field before saving.
Only applied to post fields with a name which is prefixed with post_.
The dynamic portion of the hook name, $field_no_prefix, refers to the post field name minus the post_ prefix. Possible filter names include:
pre_post_IDpre_post_comment_statuspre_post_ping_statuspre_post_to_pingpre_post_pingedpre_post_guidpre_post_menu_orderpre_post_comment_count$valuemixed
$value = apply_filters( "pre_post_{$field}", $value );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_post_field