wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_user_id › WordPress Filter Hooks

Since1.5.0
Deprecatedn/a
apply_filters( 'pre_user_id', $commentdata['user_ID'] )
Parameters:
  • () user_id The comment author's user ID.
    Required: Yes
Defined at:
Codex:

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.




Source

$commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );