Title: create_function error
Last modified: December 22, 2020

---

# create_function error

 *  [umut58tr](https://wordpress.org/support/users/umut58tr/)
 * (@umut58tr)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/create_function-error-3/)
 * Attention:
    Not fully tested. Please test if it works on your system. Responsibility
   belongs to you. I would be very happy if you let me know.
 * Deprecated: Function create_function() is deprecated in /home/umut58tr/public_html/
   wp-content/plugins/wp-db-backup/wp-db-backup.php on line 221
    /home/umut58tr/
   public_html/wp-content/plugins/wp-db-backup/wp-db-backup.php create_function()-
   > function()
 * /* line 221 */ add_action(‘admin_footer’, create_function(”, ‘ob_end_flush();’));
   /*
   line 1197 */ $all_tables = array_map(create_function(‘$a’, ‘return $a[0];’), 
   $all_tables); /* line 1430 */ $all_tables = array_map(create_function(‘$a’, ‘
   return $a[0];’), $all_tables);
 * New code
    /* line 221 */ add_action(‘admin_footer’, function(){ return ob_end_flush();});/*
   line 1197 */ $all_tables = array_map( function($a){ return $a[0]; }, $all_tables);/*
   line 1430 */ $all_tables = array_map( function($a){ return $a[0]; }, $all_tables);
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcreate_function-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘create_function error’ is closed to new replies.

 * ![](https://ps.w.org/wp-db-backup/assets/icon.svg?rev=2645691)
 * [Database Backup for WordPress](https://wordpress.org/plugins/wp-db-backup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-db-backup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-db-backup/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-db-backup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-db-backup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-db-backup/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [umut58tr](https://wordpress.org/support/users/umut58tr/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/create_function-error-3/)
 * Status: not resolved