Title: here&#8217;s a replacement for deprecated create_function
Last modified: September 9, 2020

---

# here’s a replacement for deprecated create_function

 *  [grayayer](https://wordpress.org/support/users/grayayer/)
 * (@grayayer)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/heres-a-replacement-for-deprecated-create_function/)
 * create_function is deprecated in PHP 7.2
 * thus, on line 656
 *     ```
       $section_callback = create_function( '',
       	'echo "' . $desc . '";' );
       ```
   
 * should be replaced with:
 *     ```
       $section_callback = function() {
           echo $desc;
       };
       ```
   
 * hope this helps someone else that wants to squash their PHP warnings

The topic ‘here’s a replacement for deprecated create_function’ is closed to new
replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [grayayer](https://wordpress.org/support/users/grayayer/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/heres-a-replacement-for-deprecated-create_function/)
 * Status: not resolved