Action hook 'sanitize_comment_cookies'

in WP Core File wp-settings.php at line 591

View Source

sanitize_comment_cookies

Action Hook
Description
Fires when comment cookies are sanitized.

Hook Information

File Location wp-settings.php View on GitHub
Hook Type Action
Line Number 591

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into sanitize_comment_cookies
add_action('sanitize_comment_cookies', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-settings.php:591 - How this hook is used in WordPress core
<?php
 586  /**
 587   * Fires when comment cookies are sanitized.
 588   *
 589   * @since 2.0.11
 590   */
 591  do_action( 'sanitize_comment_cookies' );
 592  
 593  /**
 594   * WordPress Query object
 595   *
 596   * @since 2.0.0

PHP Documentation

<?php
/**
 * Fires when comment cookies are sanitized.
 *
 * @since 2.0.11
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-settings.php
Related Hooks

Related hooks will be displayed here in future updates.