WP HOOKS
filtrod 3.9.0

determine_current_user

Args 1Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the current user.

The default filters use this to determine the current user from the request's cookies, if available. Returning a value of false will effectively short-circuit setting the current user.

Parametry

ParametrTypOpis
$user_idint | falseUser ID if one has been determined, false otherwise.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'determine_current_user', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii