WP HOOKS
filtrod 5.8.0

enable_loading_object_cache_dropin

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

Opis — z kodu źródłowego

Filters whether to enable loading of the object-cache.php drop-in.

This filter runs before it can be used by plugins. It is designed for non-web runtimes. If false is returned, object-cache.php will never be loaded.

Parametry

ParametrTypOpis
$enable_object_cacheboolWhether to enable loading object-cache.php (if present). Default true.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'enable_loading_object_cache_dropin', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii