Filters the value of a specific post field before saving.
Description
Only applied to post fields with a name which is not prefixed with post_.
The dynamic portion of the hook name, $field, refers to the post field name. Possible filter names include:
ID_precomment_status_preping_status_preto_ping_prepinged_preguid_premenu_order_precomment_count_pre
Parameters
$valuemixed- Value of the post field.
Source
$value = apply_filters( "{$field}_pre", $value );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.