wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



determine_current_user › WordPress Filter Hooks

Da3.9.0
Deprecaton/a
› apply_filters( 'determine_current_user', false )
Parametri:
  • () user_id User ID if one has been determined, false otherwise.
    Richiesto: Sì
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 );