delete_comment

動作鉤子
do_action( 'delete_comment', $comment_id, $comments[ $comment_id ] )
定義位置
  • wp-content/plugins/akismet/class.akismet.php , line 430
相關勾子
deleted_commentrest_delete_commentget_commentedit_commentdelete_postmeta
相關方法
wp_delete_commentdelete_comment_metadelete_metathe_commentget_commentwp_ajax_delete_comment
引入
n/a
棄用
-

delete_comment: 這個函式用於從WordPress網站上刪除一個評論。它通常用於刪除一個不再需要的評論。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'delete_comment', $comment_id, $comments[ $comment_id ] );
do_action( 'delete_comment', $comment_id, $comments[ $comment_id ] );
do_action( 'delete_comment', $comment_id, $comments[ $comment_id ] );

常見問題

FAQs
檢視更多 >