wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



auth_cookie_expiration › Filtr WordPress Hooks

Od2.8.0
Przestarzałyn/a
› apply_filters( 'auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember )
Parametry: (3)
  • () length Duration of the expiration period in seconds.
    Wymagane: Tak
  • () user_id User ID.
    Wymagane: Tak
  • () remember Whether to remember the user login. Default false.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the duration of the authentication cookie expiration period.





Źródło

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