Filter hook 'pre_user_id'
in WP Core File wp-includes/comment.php at line 2102
Description
Filters the comment author's user ID before it is set. The first time this filter is evaluated, `user_ID` is checked (for back-compat), followed by the standard `user_id` value.
Occurrences
Filename |
Line Number |
wp-includes/comment.php |
2102 |
wp-includes/comment.php |
2105 |
Parameters
Type |
Name |
Description |
int |
$user_id |
The comment author's user ID. |
PHP Doc
/**
* Filters the comment author's user ID before it is set.
*
* The first time this filter is evaluated, `user_ID` is checked
* (for back-compat), followed by the standard `user_id` value.
*
* @since 1.5.0
*
* @param int $user_id The comment author's user ID.
*/