filtrod 2.1.0
update_attached_file
Opis — z kodu źródłowego
Filters the path to the attached file to update.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$file | string | Path to the attached file to update. |
$attachment_id | int | Attachment ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'update_attached_file', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'update_attached_file', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii