sanitize_comment_cookies
The WordPress Core sanitize comment cookies hook.
Description
Parameters (1)
- 0. $sanitize_comment_cookies (string) =>
'sanitize_comment_cookies'
- The sanitize comment cookies.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'sanitize_comment_cookies', $sanitize_comment_cookies );
- The following example is for adding a hook callback.
- // define the sanitize_comment_cookies callback
- function action_sanitize_comment_cookies( $sanitize_comment_cookies ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'sanitize_comment_cookies', 'action_sanitize_comment_cookies', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'sanitize_comment_cookies', 'action_sanitize_comment_cookies', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/default-filters.php
- add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' );
- /wp-settings.php
- do_action( 'sanitize_comment_cookies' );