filtrod 2.8.0
user_row_actions
Opis — z kodu źródłowego
Filters the action links displayed under each user in the Users list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$actions | string[] | An array of action links to be displayed. Default 'Edit', 'Delete' for single site, and 'Edit', 'Remove' for Multisite. |
$user_object | \WP_User | WP_User object for the currently listed user. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'user_row_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'user_row_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii