Filters the value of a specific post field for display.
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: <ul> <li>post_author</li> <li>post_date</li> <li>post_date_gmt</li> <li>post_content</li> <li>post_title</li> <li>post_excerpt</li> <li>post_status</li> <li>post_password</li> <li>post_name</li> <li>post_modified</li> <li>post_modified_gmt</li> <li>post_content_filtered</li> <li>post_parent</li> <li>post_type</li> <li>post_mime_type</li> </ul>
Parameters
$valuemixed
Value of the prefixed post field.
$post_idint
Post ID.
$contextstring
Context for how to sanitize the field. Accepts 'raw', 'edit', 'db', 'display', 'attribute', or 'js'. Default 'display'.
3131* @param mixed$value Value of the prefixed post field.3132* @param int$post_id Post ID.3133* @param string$context Context for how to sanitize the field.3134* Accepts 'raw','edit','db','display',3135*'attribute',or'js'.Default'display'.3136*/3137$value=apply_filters("{$field}",$value,$post_id,$context);3138}else{3139/**3140* Filters the value of a specific post field for display.3141*3142* Only applied to post fields name which is *not* prefixed with `post_`.3143*
History
Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.