Title: Function create_function() is deprecated since PHP 7.2
Last modified: November 28, 2018

---

# Function create_function() is deprecated since PHP 7.2

 *  [wwwcre8r](https://wordpress.org/support/users/wwwcre8r/)
 * (@wwwcre8r)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2-2/)
 * Using PHP Compatibility Checker, got this warning, will there be a release to
   fix this?
 * Function create_function() is deprecated since PHP 7.2; Use an anonymous function
   instead

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

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2-2/#post-10927902)
 * Thank you for the report. I recall that I used create_function() for compatibility
   with old PHP versions. Checking now, I see that anonymous functions were added
   in PHP 5.3. I think I’ll bump the plugin’s requirement to solve this deprecation
   warning in PHP 7.2.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2-2/#post-11040527)
 * The latest version of the plugin raised the PHP requirement to 5.3, and replaced`
   create_function()` with an anonymous function. That should resolve the warning
   in PHP 7.2.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/function-create_function-is-deprecated-since-php-7-2-2/#post-11040527)
 * Status: not resolved