WP HOOKS
filtrod 3.7.0

post_password_expires

Args 1Plik wp-login.phpDokumentacja WP ↗

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

ParametrTypOpis
$expiresintThe 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
}

Popularne w tej kategorii