Filters the value of a specific field before saving.
Description
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
Parameters
$valuemixed- Value of the post field.
Source
$value = apply_filters( "pre_post_{$field}", $value );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.