filtrod 1.5.0
template_directory_uri
Opis — z kodu źródłowego
Filters the active theme directory URI.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$template_dir_uri | string | The URI of the active theme directory. |
$template | string | Directory name of the active theme. |
$theme_root_uri | string | The themes root URI. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'template_directory_uri', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'template_directory_uri', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii