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



post_password_expires › WordPress Filter Hooks

Da3.7.0
Deprecaton/a
apply_filters( 'post_password_expires', time()
Parametri:
  • (int) $expires The expiry time, as passed to setcookie().
    Richiesto:
Definito a:
Codex:

Filters the life span of the post password cookie.

By default, the cookie expires 10 days from creation. To turn this into a session cookie, return 0.





Sorgenti

$expire  = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );