set_comment_cookies

动作钩子


do_action( 'set_comment_cookies', $comment, $user, $cookies_consent )
参数
  • (WP_Comment)
    $comment
    Comment object.
    Required:
  • (WP_User)
    $user
    Comment author’s user object. The user may not exist.
    Required:
  • (bool)
    $cookies_consent
    Comment author’s consent to store cookies.
    Required:
定义位置
  • wp-comments-post.php
    , line 55
引入
4.9.6
弃用

Perform other actions when comment cookies are set.

do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );