Un motore di ricerca WordPress per sviluppatori e autori di temi



determine_current_user ›

Da3.9.0
Deprecaton/a
apply_filters( 'determine_current_user', false )
Parametri:
  • (int|bool) $user_id User ID if one has been determined, false otherwise.
    Richiesto:
Definito a:
Codex:

Filters the current user.

The default filters use this to determine the current user from the request's cookies, if available.

Returning a value of false will effectively short-circuit setting the current user.





Sorgenti

$user_id = apply_filters( 'determine_current_user', false );