这里会显示出您选择的修订版和当前版本之间的差别。
— |
zblogphp:development:plugin:interfacestc:filter_plugin_postcategory_succeed [2020/07/29 10:38] (当前版本) 唐朝 创建 |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | 案例(禁止分类1加入导航): | ||
+ | <code php> | ||
+ | function ActivePlugin_tc_cs() { | ||
+ | Add_Filter_Plugin('Filter_Plugin_PostCategory_Succeed','ytecn_postcategory_succeed'); | ||
+ | } | ||
+ | |||
+ | function ytecn_postcategory_succeed($cate) { | ||
+ | global $zbp; | ||
+ | if($cate->ID == 1){ | ||
+ | $zbp->DelItemToNavbar('category', $cate->ID); | ||
+ | } | ||
+ | } | ||
+ | </code> |