Filters the value of a specific post field before saving.
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$valuemixed
$value = apply_filters( "pre_{$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_field