WP HOOKS
filtrod MU (3.0.0)

myblogs_options

Args 2Plik wp-admin/my-sites.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the settings HTML markup in the Global Settings section on the My Sites screen.

By default, the Global Settings section is hidden. Passing a non-empty string to this filter will enable the section, and allow new settings to be added, either globally or for specific sites.

Parametry

ParametrTypOpis
$settings_htmlstringThe settings HTML markup. Default empty.
$contextstringContext of the setting (global or site-specific). Default 'global'.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'myblogs_options', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii