{$context}_memory_limit

FILTER wp-includes\functions.php (ligne 7928) github
Filters the memory limit allocated for an arbitrary context. The dynamic portion of the hook name, `$context`, refers to an arbitrary context passed on calling the function. This allows for plugins to define their own contexts for raising the memory limit.

Paramètres

Entrée :
$filtered_limit
Sortie :
@param int|string $filtered_limit Maximum memory limit to allocate for this context.

Utilisation

// Modifier la valeur avec le filtre '{$context}_memory_limit'
add_filter('{$context}_memory_limit', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($filtered_limit) {
    // Modifier la valeur
    return $filtered_limit;
}

Actualités

Chargement des actualités...