// Chemin vers le fichier à modifier $fichier = '/home/dabidesign/wp-content/themes/FolioGridPro/functions/widget-twitter.php'; // Lire le contenu du fichier $contenu = file_get_contents($fichier); // Remplacer toutes les occurrences de create_function() par des fonctions anonymes $nouveau_contenu = preg_replace_callback('/create_function\s*\(([^,]+)\s*,\s*([^\)]+)\)/', function($matches) { // Extraire les arguments de la fonction create_function() $args = trim($matches[1], "'\""); // Enlever les guillemets autour des arguments $body = trim($matches[2], "'\""); // Enlever les guillemets autour du corps de la fonction // Construire la fonction anonyme $function = 'function(' . $args . ') { ' . $body . ' }'; return $function; }, $contenu); // Écrire le nouveau contenu dans le fichier file_put_contents($fichier, $nouveau_contenu); echo 'Remplacement terminé avec succès !';

Christophe Dabi

Welcome at workshop

Christophe Dabi

Lighting designer | Fine arts craftman

"Light is noble material."

Our new website is under completion in english. We apologize for inconvenience.

More details >

Discover

Our collections

in limited editions



Experiment

Bespoke design

to shape light in your image


"The initial idea often arises from a few scribbled pencil lines that we come back to a thousand times to make exceptional objects. The ideas that come to him are the fruits of exchanges, meetings and discoveries that the mind digests , transforms, adapts. "
Subscribe Scroll to Top