edit_post_{$field}

edit_post_{$field}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('edit_post_{$field}') is found 1 times:

  • /wp-includes/post.php line 2979
    2975
    2976
    2977
    2978
    2979
    2980
    2981
    2982
    2983
    2984
    2985
         *
         * @param mixed $value   Value of the post field.
         * @param int   $post_id Post ID.
         */
        $value = apply_filters( "edit_post_{$field}", $value, $post_id );
    }
     
    if ( in_array( $field, $format_to_edit, true ) ) {
        if ( 'post_content' === $field ) {
            $value = format_to_edit( $value, user_can_richedit() );
        } else {