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