filtrod 6.3.0
cron_memory_limit
Opis — z kodu źródłowego
Filters the memory limit allocated for WP-Cron event processing.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$filtered_limit | int | string | Maximum memory limit to allocate for WP-Cron. 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( 'cron_memory_limit', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'cron_memory_limit', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii