filtrod 1.5.0
template_directory
Opis — z kodu źródłowego
Filters the active theme directory path.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$template_dir | string | The path of the active theme directory. |
$template | string | Directory name of the active theme. |
$theme_root | string | Absolute path to the themes directory. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'template_directory', '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', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii