filtrod 3.1.0
manage_sites_action_links
Opis — z kodu źródłowego
Filters the action links displayed for each site in the Sites list table.
The 'Edit', 'Dashboard', 'Delete Permanently', and 'Visit' links are displayed by default for each site. The site's status determines whether to show the 'Remove Deletion Flag' or 'Flag for Deletion' link, 'Unarchive' or 'Archive' links, and 'Not Spam' or 'Spam' link for each site.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$actions | string[] | An array of action links to be displayed. |
$blog_id | int | The site ID. |
$blogname | string | Site path, formatted depending on whether it is a sub-domain or subdirectory multisite installation. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_sites_action_links', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_sites_action_links', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii