edit_post_(field)
Usage
add_filter( 'edit_post_(field)', 'wp_kama_edit_post_field_filter', 10, 2 ); /** * Function for `edit_post_(field)` filter-hook. * * @param $value * @param $post_id * * @return */ function wp_kama_edit_post_field_filter( $value, $post_id ){ // filter... return $value; }
- $value
- -
- $post_id
- -
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
edit_post_(field)
wp-includes/post.php 2823
$value = apply_filters( "edit_post_{$field}", $value, $post_id );