Z-Blog Wiki Z-Blog Wiki

Z-Blog官方文库

用户工具

站点工具


zblogphp:development:plugin:interfacestc:filter_plugin_postarticle_core

这是本文档旧的修订版!


案例(晚上10点到次日8点之间发布的文章自动转到草稿栏):

function ActivePlugin_tc_cs() {
    Add_Filter_Plugin('filter_plugin_postarticle_core','ytecn_postarticle_core');
}
 
function ytecn_postarticle_core(&$comment) {
    $a=date('H',time());
    $a=(int)$a;
    if($a>=22){
        $states=1;
    }
    if($a<8){
        $states=1;
    }
    if($states == 1){
        $comment->IsChecking=1;
    }
}

zblogphp/development/plugin/interfacestc/filter_plugin_postarticle_core.1598859119.txt · 最后更改: 2020/08/31 15:31 由 唐朝