Z-Blog Wiki Z-Blog Wiki

Z-Blog官方文库

用户工具

站点工具


zblogphp:development:plugin:interfacestc:filter_plugin_postcategory_succeed

案例(禁止分类1加入导航):

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);
    }
}

zblogphp/development/plugin/interfacestc/filter_plugin_postcategory_succeed.txt · 最后更改: 2020/07/29 10:38 由 唐朝