過濾器:auth_cookie_expiration
用於過濾和設定認證 Cookie 的過期時間。
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| $length | int | 過期時間(秒)。 |
| $user_id | int | 使用者 ID。 |
| $remember | bool | 是否記住使用者登入。預設為 false。 |
可用自
- 2.8.0
來源
定義於 inc/sso/auth-functions.php 第 52 行
用於過濾和設定認證 Cookie 的過期時間。
| 名稱 | 類型 | 描述 |
|---|---|---|
| $length | int | 過期時間(秒)。 |
| $user_id | int | 使用者 ID。 |
| $remember | bool | 是否記住使用者登入。預設為 false。 |
定義於 inc/sso/auth-functions.php 第 52 行