filtrod 3.5.0
pre_get_space_used
Opis — z kodu źródłowego
Filters the amount of storage space used by the current site, in megabytes.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$space_used | int | false | The amount of used space, in megabytes. Default false. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'pre_get_space_used', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'pre_get_space_used', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}