edit_post_{$field}

edit_post_{$field}

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

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

  • /wp-includes/post.php line 2901
    			 * @param int   $post_id Post ID.
    			 */
    			$value = apply_filters( "{$field_no_prefix}_edit_pre", $value, $post_id );
    		} else {
    			$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 {