echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » 在Wordpress2.5版以上添加boxes组件的方法 仲子说

2008-11-19

在Wordpress2.5版以上添加boxes组件的方法

Posted in PHP at 13:15 Author:仲远

标签:

?Wordpress????????????Wordpress????????API?Hook???????????????????post-new.php????????box?????????“??”?“Trackback”??????????????????

add_action(’dbx_post_advanced’, ‘myplugin_old_custom_box’ );
???
add_action(’dbx_post_sidebar’, ‘myplugin_old_custom_box’ );

???????????myplugin_old_custom_box()??????????(dbx_post_advanced)???????????myplugin_old_custom_box()????????(sidebar)?(dbx_post_sidebar)?

????Wordpress2.5????????????????myplugin_old_custom_box()???????????????????????(dbx_post_sidebar)????myplugin_old_custom_box()??????????????

?????Wordpress2.5?????????????????admin boxes???
add_meta_box( ‘myplugin_sectionid’, __( ‘My Post Section Title’, ‘myplugin_textdomain’ ),
‘myplugin_inner_custom_box’, ‘post’, ‘advanced’, ‘default’ );
 
???add_meta_box?????????id, ??, callback??, ??(’post’, ‘page’ or ‘link’ panels), ???(’normal’, ‘advanced’) ? ???(’high’, ‘core’, ‘default’, ‘low’).

??????????(sidebar)????box???????
add_action(’submitpost_box’, ‘myplugin_sidebar’)

???????Wordpress??????????box????

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word