function add_post_custombox() {
$custom_key = "mykey" ;
global $post;
echo '<input type="text" name="' . $custom_key . '" value="' . esc_attr( get_post_meta( $post->ID, $custom_key, true )) . '" size="15" />' ;
}
add_meta_box( 'mykeybox', 'mybox', 'add_post_custombox', 'post' ) ;

関数名 (add_post_custombox) は自由に命名できる。関数内で実際に出力する HTML を設定する。
add_meta_box で登録すると、管理画面上に add_post_custombox の出力が表示される。