Title: create_function() deprecated in PHP 7.2
Last modified: September 12, 2018

---

# create_function() deprecated in PHP 7.2

 *  Resolved [Micha Krapp](https://wordpress.org/support/users/mfgmicha/)
 * (@mfgmicha)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/create_function-deprecated-in-php-7-2-9/)
 * Hallo Finn,
 * unter PHP 7.2 ist die [im Plugin verwendete Funktion create_function()](https://plugins.trac.wordpress.org/browser/statify-widget/trunk/statify-widget.php#L165)
   als deprecated markiert und wirft entsprechende Fehler / Hinweise.
 * Ich hatte es auch bereits im GitHub Repo als Issue angelegt aber jetzt gesehen
   das der Stand auf GitHub nicht dem aktuellen Plugin stand enspricht.
 * Ich habe lokal bei mir den Code bereits verbessert um den Fehler auszublenden.
   
   Wenn du möchtest kannst du das ja gerne in dein Plugin einbauen.
 *     ```
       /*
        * Register Statify widget
        */
       function register_statify_widget() {
       	register_widget( 'StatifyWidget' );
       }
       add_action( 'widgets_init', 'register_statify_widget' );
       ```
   
    -  This topic was modified 7 years, 9 months ago by [Micha Krapp](https://wordpress.org/support/users/mfgmicha/).
    -  This topic was modified 7 years, 9 months ago by [Micha Krapp](https://wordpress.org/support/users/mfgmicha/).
      Reason: code edit
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreate_function-deprecated-in-php-7-2-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Finn Dohrn](https://wordpress.org/support/users/bitnulleins/)
 * (@bitnulleins)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/create_function-deprecated-in-php-7-2-9/#post-10680762)
 * Hallo Micha,
 * das ist ein super Hinweis von dir! Aktuell schaffe ich es nicht aktiv nach meinen
   Plugins zu schauen. Werde den deprecated Teil aber umgehend entfernen. Das geht
   ja garnicht. 😉
 * Dank deines Snippets, kann ich das ja sogar relativ einfach ändern. Werde ich
   die Tage machen. 🙂
 * Mein Github Repo müsste ich mal wieder aktualisieren. Nur blöd dass WordPress
   auf SVN und Github auf GIT setzt. Immer doppelte Arbeit.
 * Danke Dir!
 *  Plugin Author [Finn Dohrn](https://wordpress.org/support/users/bitnulleins/)
 * (@bitnulleins)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/create_function-deprecated-in-php-7-2-9/#post-10847256)
 * Hallo Micha,
 * vielen Dank nochmal für den Hinweis. Der Bug-fix müsste nun in der aktuellsten
   Version eingespielt sein.
 * LG, Finn

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘create_function() deprecated in PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/statify-widget/assets/icon-256x256.gif?rev=2844521)
 * [Statify Widget](https://wordpress.org/plugins/statify-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/statify-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/statify-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/statify-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/statify-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/statify-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Finn Dohrn](https://wordpress.org/support/users/bitnulleins/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/create_function-deprecated-in-php-7-2-9/#post-10847256)
 * Status: resolved