filtrod 3.1.0
ms_user_list_site_actions
Opis — z kodu źródłowego
Filters the action links displayed next the sites a user belongs to in the Network Admin Users list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$actions | string[] | An array of action links to be displayed. Default 'Edit', 'View'. |
$userblog_id | int | The site ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ms_user_list_site_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ms_user_list_site_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii