Title: Function create_function() is deprecated since PHP 7.2;
Last modified: July 27, 2018

---

# Function create_function() is deprecated since PHP 7.2;

 *  Resolved [jwpa123](https://wordpress.org/support/users/jwpa123/)
 * (@jwpa123)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2/)
 * /wp-content/plugins/contact-form-7/includes/formatting.php
 * Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead
    More info/resolution- [https://stackoverflow.com/questions/48161526/php-7-2-function-create-function-is-deprecated](https://stackoverflow.com/questions/48161526/php-7-2-function-create-function-is-deprecated)
 * I checked the main github to raise a PR/CR but it didn’t seem active so I thought
   I’d raise it here.
 * SORRY – not an issue in latest release. I thought I had latest plugin source 
   but wp version was blocking.
    -  This topic was modified 7 years, 10 months ago by [jwpa123](https://wordpress.org/support/users/jwpa123/).
      Reason: not an issue in latest release
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-create_function-is-deprecated-since-php-7-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)

 * 0 replies
 * 1 participant
 * Last reply from: [jwpa123](https://wordpress.org/support/users/jwpa123/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2/)
 * Status: resolved