filtrod MU (3.0.0)
myblogs_options
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
| Parametr | Typ | Opis |
|---|---|---|
$settings_html | string | The settings HTML markup. Default empty. |
$context | string | Context 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
}
// 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