WP HOOKS
filtrod 3.1.0

manage_sites_action_links

Args 3Plik wp-admin/includes/class-wp-ms-sites-list-table.phpDokumentacja WP ↗

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

ParametrTypOpis
$actionsstring[]An array of action links to be displayed.
$blog_idintThe site ID.
$blognamestringSite 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
}

Popularne w tej kategorii