WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/sanitize comment cookies

Description

Sanitizes the cookies sent to the user already.

Will only do anything if the cookies have already been created for the user. Mostly used after cookies had been sent to use elsewhere.

Usage

<?php sanitize_comment_cookies() ?>

Parameters

None

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • Uses: apply_filters() with 'pre_comment_author_name' on 'comment_author' cookie
  • Uses: apply_filters() with 'pre_comment_author_email' on 'comment_author_email' cookie
  • Uses: apply_filters() with 'pre_comment_author_url' on 'comment_author_url' cookie

Change Log

Since: 2.0.4

Source File

sanitize_comment_cookies() is located in wp-includes/comment.php.

Related

See also index of Function Reference and index of Template Tags.