Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_user_id ›

Desde1.5.0
Obsoleton/a
apply_filters( 'pre_user_id', $commentdata['user_ID'] )
Parâmetros:
  • (int) $user_ID The comment author's user ID.
    Required: Yes
Definido em:
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.





Fonte

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