filtrod 1.5.0
pre_user_id
Opis — z kodu źródłowego
Filters the comment author's user ID before it is set.
The first time this filter is evaluated, user_ID is checked (for back-compat), followed by the standard user_id value.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | The comment author's user ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_user_id', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'pre_user_id', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii