comment_email

過濾鉤子
apply_filters( 'comment_email', $comment->comment_author_email, $comment )

comment_email: 這是一個過濾鉤子,在檢索評論作者的電子郵件地址時被執行。這個鉤子被傳遞給電子郵件地址作為它的唯一引數,並且它被期望返回電子郵件地址。這個鉤子的目的是允許外掛或主題修改評論作者的電子郵件地址。

這個過濾器在wp-includes/comment-template.php中有記錄。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );

常見問題

FAQs
檢視更多 >