unspam_comment

動作鉤子
do_action( 'unspam_comment', $comment->comment_ID, $comment )
引數
  • (string) $comment_id The comment ID as a numeric string.
    Required:
  • (WP_Comment) $comment The comment to be unmarked as spam.
    Required:
定義位置
相關勾子
spam_commentunspammed_commentspammed_commentuntrash_commentuntrashed_comment
相關方法
wp_unspam_commentwp_spam_commentseparate_commentswp_untrash_commentwp_allow_commentwp_trash_comment
引入
4.9.0
棄用
-

“unspam_comment”是 WordPress 中的一個函式,用於反垃圾評論。 此功能將評論的狀態從垃圾郵件更改為已批准,使其在網站上可見。

在評論未被標記為垃圾郵件之前立即觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'unspam_comment', $comment->comment_ID, $comment );
do_action( 'unspam_comment', $comment->comment_ID, $comment );
do_action( 'unspam_comment', $comment->comment_ID, $comment );

常見問題

FAQs
檢視更多 >