filtrod 3.5.0
image_memory_limit
Opis — z kodu źródłowego
Filters the memory limit allocated for image manipulation.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$filtered_limit | int | string | Maximum memory limit to allocate for image processing. Default <code>WP_MAX_MEMORY_LIMIT</code> or the original php.ini <code>memory_limit</code>, whichever is higher. Accepts an integer (bytes), or a shorthand string notation, such as '256M'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'image_memory_limit', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'image_memory_limit', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii