Attempts to raise the PHP memory limit for memory intensive processes. Only allows raising the existing limit and prevents lowering it. Wrapper for wp_raise_memory_limit(), added in WordPress v4.6.0
$wp_max_limit
Sortie :
@return bool|int|string The limit that was set or false on failure.
// Modifier la valeur avec le filtre 'admin_memory_limit'
add_filter('admin_memory_limit', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($wp_max_limit) {
// Modifier la valeur
return $wp_max_limit;
}
Chargement des actualités...