常用函数-sanitize_comment_cookies()

0条评论

常用函数-sanitize_comment_cookies()

说明

审查发送给用户的cookies

若已经为用户生成cookies,可以进行其他操作。cookies被发送到其他地方之后,可以使用该函数。

用法

<?php sanitize_comment_cookies() ?>

参数

返回的值

(空)

该函数不返回任何值

示例

注释

  • 用法:apply_filters() 在'comment_author' cookie 上与 'pre_comment_author_name'共同使用
  • 用法:apply_filters()在 'comment_author_email' cookie 上与'pre_comment_author_email'共同使用
  • 用法:apply_filters() 在'comment_author_url' cookie 上与'pre_comment_author_url' 共同使用

修改记录

自2.0.4版本后

源文件

sanitize_comment_cookies()位于 wp-includes/comment.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.