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



auth_cookie_expiration › Les Filtres WordPress

Depuis2.8.0
Dépréciéen/a
› apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember )
Paramètres: (3)
  • () length Duration of the expiration period in seconds.
    Requis: Oui
  • () user_id User ID.
    Requis: Oui
  • () remember Whether to remember the user login. Default false.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the duration of the authentication cookie expiration period.





Source

$expiration = time() + apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember );