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.
$filtered_limit
Sortie :
@param int|string $filtered_limit Maximum memory limit to allocate for this context.
// 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;
}
Chargement des actualités...