filtrod 2.1.0
wp_delete_file
Opis — z kodu źródłowego
Filters the path of the file to delete.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$file | string | Path to the file to delete. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_delete_file', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_delete_file', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii