Filters the value of a specific post 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, refers to the post field name. Possible filter names include:
pre_post_authorpre_post_datepre_post_date_gmtpre_post_contentpre_post_titlepre_post_excerptpre_post_statuspre_post_passwordpre_post_namepre_post_modifiedpre_post_modified_gmtpre_post_content_filteredpre_post_parentpre_post_typepre_post_mime_type
Parameters
$valuemixed- Value of the post field.
Source
$value = apply_filters( "pre_{$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.