filtrod 4.7.0
theme_file_path
Opis — z kodu źródłowego
Filters the path to a file in the theme.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$path | string | The file path. |
$file | string | The requested file to search for. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'theme_file_path', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'theme_file_path', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii