wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_user_id › WordPress Filter Hooks

Seit1.5.0
Veraltetn/v
apply_filters( 'pre_user_id', $commentdata['user_ID'] )
Parameter:
  • (int) $user_id The comment author's user ID.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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