filtrod 6.0.0
wp_filesize
Opis — z kodu źródłowego
Filters the size of the file.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$size | int | The result of PHP filesize on the file. |
$path | string | Path to the file. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_filesize', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_filesize', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii