WP HOOKS
akcjaod 5.6.0

wp_create_application_password

Args 4Plik wp-includes/class-wp-application-passwords.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires when an application password is created.

Parametry

ParametrTypOpis
$user_idintThe user ID.
$new_itemarray{ The details about the created password. @type string $uuid The unique identifier for the application password. @type string $app_id A UUID provided by the application to uniquely identify it. @type string $name The name of the application password. @type string $password A one-way hash of the password. @type int $created Unix timestamp of when the password was created. @type null $last_used Null. @type null $last_ip Null. }
$new_passwordstringThe generated application password in plain text.
$argsarray{ Arguments used to create the application password. @type string $name The name of the application password. @type string $app_id A UUID provided by the application to uniquely identify it. }

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_create_application_password', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii