wp_set_comment_cookies [ WordPress Function ]
wp_set_comment_cookies ( $comment, $user )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: sanitize_comment_cookies, wp_set_auth_cookie, wp_list_comments, wp_set_comment_status, wp_insert_comment
Sets the cookies used to store an unauthenticated commentator's identity. Typically used to recall previous comments by this commentator that are still held in moderation.
Source
<?php
function wp_set_comment_cookies($comment, $user) {
if ( $user->exists() )
return;
$comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);
setcookie('comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- __qca cookie - which WordPress plugin makes it appear? | LinkedIn
May 18, 2012 ... remove_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 2 ); but it would be nice to have something like a tick box on the form ...
www.linkedin.com - Docs for page comment.php
since: 3.4.0. void wp_set_comment_cookies (object $comment, object $user). object $comment: Comment object. object $user: Comment author's object.
phpdoc.wordpress.org - _close_comments_for_old_posts (WordPress Function) - WPSeek ...
Similar Functions: _close_comments_for_old_post, wp_set_comment_status, get_comment_author_rss, wp_set_comment_cookies, check_comment_flood_db ...
wpseek.com - PHPXRef 0.7 : WordPress : /wp-includes/default-filters.php source
... 240 add_action( 'set_comment_cookies', 'wp_set_comment_cookies', 10, 2 ); 241 add_action( 'sanitize_comment_cookies', 'sanitize_comment_cookies' ) ...
phpxref.ftwr.co.uk