WP HOOKS
filtrod 4.6.0

network_edit_site_nav_links

Args 1Plik wp-admin/includes/ms.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the links that appear on site-editing network pages.

Default links: 'site-info', 'site-users', 'site-themes', and 'site-settings'.

Parametry

ParametrTypOpis
$linksarray{ An array of link data representing individual network admin pages. @type array $link_slug { An array of information about the individual link to a page. $type string $label Label to use for the link. $type string $url URL, relative to <code>network_admin_url()</code> to use for the link. $type string $cap Capability required to see the link. } }

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'network_edit_site_nav_links', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii