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