wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_user_id › Les Filtres WordPress

Depuis1.5.0
Dépréciéen/a
apply_filters( 'pre_user_id', $commentdata['user_ID'] )
Paramètres:
  • (int) $user_id The comment author's user ID.
    Requis: Oui
Défini(e) dans:
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'] );