WordPress开发者和主题制作者的搜索引擎



set_comment_cookies ›

Since4.9.6
已弃用n/a
do_action( 'set_comment_cookies', $comment, $user, $cookies_consent )
参数: (3)
  • (WP_Comment) $comment Comment object.
    Required: Yes
  • (WP_User) $user Comment author's user object. The user may not exist.
    Required: Yes
  • (boolean) $cookies_consent Comment author's consent to store cookies.
    Required: Yes
定义在:
文档:

Perform other actions when comment cookies are set.





源码

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