Title: Deprecated: Function create_function()
Last modified: May 14, 2019

---

# Deprecated: Function create_function()

 *  [julienfelix](https://wordpress.org/support/users/julienfelix/)
 * (@julienfelix)
 * [7 years ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/)
 * Deprecated: Function create_function() is deprecated in […]/wp-content/plugins/
   footnotes/class/init.php on line 61

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

 *  Plugin Author [Mark Cheret](https://wordpress.org/support/users/markcheret/)
 * (@markcheret)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/#post-11697812)
 * Hey Julien Felix,
 * thank you for your support request.
    I’m sorry to hear you’re experiencing issues.
 * I’d so love to help you on this one but I currently don’t have the development
   resources. Do you know someone who could help me out on the development side 
   to iron out your issue?
 * Thank you so much for your request and for your time!
    Best Mark
 *  [iamthedan](https://wordpress.org/support/users/iamthedan/)
 * (@iamthedan)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/#post-11782805)
 * Interested in solving this too.
 * The line in question causing problems is init.php line 61:
    `add_action('widgets_init',
   create_function('', 'return register_widget("MCI_Footnotes_Widget_ReferenceContainer");'));`
 * My favored solution is to make the add_action callable a function definition:
 *     ```
       add_action('widgets_init', function() {
       	return register_widget("MCI_Footnotes_Widget_ReferenceContainer");
       });
       ```
   
 * This requires support for PHP 5.3+ (the plugin shows compatibility currently 
   with WP 3.9+, which claims to run on PHP 5.2.4+. Don’t know if that makes a difference;
   I’m betting the plugin already uses some features for later versions of PHP).
   [@markcheret](https://wordpress.org/support/users/markcheret/) is this something
   you can put in place on a release to make compatibility with PHP 7.2+ better?
 * ~Dan
 *  [mahrr](https://wordpress.org/support/users/maloherry/)
 * (@maloherry)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/#post-12231303)
 * Hello, any update on this 7.2 compatibility issue ?
 *  [dianne92](https://wordpress.org/support/users/dianne92/)
 * (@dianne92)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/#post-12628974)
 * Please provide a solution for the Deprecated: Function create_function() as I
   am spammed with logs regarding this error.
 * `PHP Deprecated: Function create_function() is deprecated in /var/www/hlbenefits.
   com/html/wp-content/plugins/footnotes/class/init.php on line 61`

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

The topic ‘Deprecated: Function create_function()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/footnotes_9d9c99.svg)
 * [footnotes](https://wordpress.org/plugins/footnotes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/footnotes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/footnotes/)
 * [Active Topics](https://wordpress.org/support/plugin/footnotes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/footnotes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/footnotes/reviews/)

## Tags

 * [depreciated](https://wordpress.org/support/topic-tag/depreciated/)

 * 4 replies
 * 2 participants
 * Last reply from: [dianne92](https://wordpress.org/support/users/dianne92/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-create_function-10/#post-12628974)
 * Status: not resolved