filtrod 3.7.0
post_password_expires
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$expires | int | The expiry time, as passed to setcookie(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'post_password_expires', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'post_password_expires', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii