WP HOOKS
filtrod 6.3.0

cron_memory_limit

Args 1Plik wp-includes/functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the memory limit allocated for WP-Cron event processing.

Parametry

ParametrTypOpis
$filtered_limitint | stringMaximum 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
}

Popularne w tej kategorii