WP HOOKS
filtrdynamicznyod 2.9.0

pre_user_{$field}

Args 1Plik wp-includes/user.php

Opis — z kodu źródłowego

Filters the value of a user field in the 'db' context.

The dynamic portion of the hook name, $field, refers to the prefixed user field being filtered, such as 'user_login', 'user_email', 'first_name', etc.

Parametry

ParametrTypOpis
$valuemixedValue of the prefixed user field.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_user_{$field}', 'twoja_funkcja' );

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

Popularne w tej kategorii