wordpress文章發佈、更新、刪除、回收站使用鉤子函數掛載要觸發的方法

add_action('publish_post','publish_article'); //掛鉤 發佈、更新文章時將函數掛載到publish_post上 function publish_article( $post_ID ) { return file_put_contents('123publish.txt',var_export($post_ID,true)); } add_ac
相關文章
相關標籤/搜索