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



auth_cookie_expiration › WordPress Filter Hooks

Seit2.8.0
Veraltetn/v
› apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember )
Parameter: (3)
  • () length Duration of the expiration period in seconds.
    Erforderlich: Ja
  • () user_id User ID.
    Erforderlich: Ja
  • () remember Whether to remember the user login. Default false.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the duration of the authentication cookie expiration period.





Quellcode

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