WP HOOKS
akcjareferencjaod 1.5.1

wp_authenticate

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

Opis — z kodu źródłowego

Fires before the user is authenticated.

The variables passed to the callbacks are passed by reference, and can be modified by callback functions.

Parametry

ParametrTypOpis
$user_loginstringUsername (passed by reference).
$user_passwordstringUser password (passed by reference).

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'wp_authenticate', 'twoja_funkcja' );

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

Popularne w tej kategorii