- 介绍
- 玉照
![post_meta_box](http://static.oschina.net/uploads/img/201601/19151724_ncSE.png)
- 代码
add_action('add_meta_boxes', 'suren_add_meta_boxes', 10, 2);
function suren_add_meta_boxes($post_type, $post)
{
add_meta_box(
'my-meta-box',
__('meta-box'),
'suren_render_my_meta_box',
'post',
'normal',
'default'
);
}
function suren_render_my_meta_box()
{
echo 'hello meta box';
}
[/codesyntax]