其他分享
首页 > 其他分享> > 添加POST_TYPE——以增加Slider为例(未完待续)

添加POST_TYPE——以增加Slider为例(未完待续)

作者:互联网

钩子:

add_action('init', 'cube_slider_register');
add_action("admin_init", "cmp_slider_init");
add_action('save_post', 'cmp_save_slide');
add_action("manage_cmp_slider_posts_custom_column",  "cmp_slider_custom_columns");
add_action( 'admin_menu', 'cmp_slider_remove_menu_items' );

核心函数:

register_post_type( )

https://developer.wordpress.org/reference/functions/register_post_type/

register_taxonomy( $taxonomy, $object_type, $args );

https://developer.wordpress.org/reference/functions/register_taxonomy/

add_meta_box( )

 

 

 

 

manage_cmp_slider_posts_custom_column

标签:register,slider,taxonomy,为例,未完待续,Slider,add,action,cmp
来源: https://www.cnblogs.com/zhaoweidong/p/10485753.html