filtrod 2.6.0
style_loader_tag
Opis — z kodu źródłowego
Filters the HTML link tag of an enqueued style.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$tag | string | The link tag for the enqueued style. |
$handle | string | The style's registered handle. |
$href | string | The stylesheet's source URL. |
$media | string | The stylesheet's media attribute. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'style_loader_tag', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'style_loader_tag', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii