Filters the value of a specific post field to edit.
Description
Only applied to post fields not prefixed with post_. The dynamic portion of the hook name, $field, refers to the post field name. Possible filter names include: <ul> <li>edit_post_ID</li> <li>edit_post_ping_status</li> <li>edit_post_pinged</li> <li>edit_post_to_ping</li> <li>edit_post_comment_count</li> <li>edit_post_comment_status</li> <li>edit_post_guid</li> <li>edit_post_menu_order</li> </ul>
3022*3023* @since 2.3.03024*3025* @param mixed$value Value of the post field.3026* @param int$post_id Post ID.3027*/3028$value=apply_filters("edit_post_{$field}",$value,$post_id);3029}30303031if(in_array($field,$format_to_edit,true)){3032if('post_content'===$field){3033$value=format_to_edit($value,user_can_richedit());3034}else{
History
Introduced in 2.3.0. Unchanged from 6.7.7 through 7.1.0.