filtrod 2.3.0
wp_admin_css
Opis — z kodu źródłowego
Filters the stylesheet link to the specified CSS file.
If the site is set to display right-to-left, the RTL stylesheet link will be used instead.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$stylesheet_link | string | HTML link element for the stylesheet. |
$file | string | Style handle name or filename (without ".css" extension) relative to wp-admin/. Defaults to 'wp-admin'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_admin_css', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_admin_css', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii