Filters the value of a specific post field for display.
Only applied to post fields 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:
post_IDpost_comment_statuspost_ping_statuspost_to_pingpost_pingedpost_guidpost_menu_orderpost_comment_count$valuemixed
$post_idint
$contextstring
'raw', 'edit', 'db', 'display', 'attribute', or 'js'. Default 'display'.$value = apply_filters( "post_{$field}", $value, $post_id, $context );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_field