案例(删除当前分类后,自动发布一篇文章):
function ActivePlugin_tc_cs() { Add_Filter_Plugin('Filter_Plugin_DelCategory_Succeed','ytecn_delcategory_succeed'); } function ytecn_delcategory_succeed($cate) { $article = new Post(); $article->Title="删除分类".$cate->name; $article->Save(); }