Title: Deprecated: Function create_function()
Last modified: March 14, 2023

---

# Deprecated: Function create_function()

 *  [uniquelywired](https://wordpress.org/support/users/uniquelywired/)
 * (@uniquelywired)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-18/)
 * Working on a site that no longer has theme support.
 * Can anyone assist with the code update needed to fix the following.
 * Brackets removed from script to show code
 * add_filter( ‘loop_shop_columns’,create_function(‘$column’,’return ($col=get_option(\’
   loop_shop_columns\’))?$col:$column;’));
 * add_filter(‘widget_text’,create_function(‘$s’, ‘return do_shortcode($s);’));
 * add_filter( “shortcode_atts_dt_timeline_item”,create_function(‘$out’,’$out[“icon_box”]
   =”circle”;return $out;’));
 * add_action(‘wp_enqueue_scripts’,create_function(”,’global $detheme_config;print“
   script type=\”text/javascript\”>var ajaxurl = \'”.admin_url(\’admin-ajax.php\’).”\’;
   var themecolor=\'”.$detheme_config[\’primary-color\’].”\’; /script\n”;’));
 * add_action(‘wp_footer’,create_function(”,’global $detheme_Scripts;if(count($detheme_Scripts))
   print “script type=\”text/javascript\”>\n”.@implode(“\n”,$detheme_Scripts).”\
   n/script\n”;’),99998);
 * add_action(‘wp_footer’,create_function(”,’global $detheme_config;if(isset($detheme_config[\’
   js-code\’]) && !empty($detheme_config[\’js-code\’])) print “script type=\”text/
   javascript\” “.$detheme_config[\’js-code\’].”/script\n”;’),99998);

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-18/#post-16556081)
 * You’re going to have to rewrite that a bit. See [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)
   for some wordpress-related advice.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-18/#post-16556605)
 * Please try [https://jobs.wordpress.net/](https://jobs.wordpress.net/) or [https://jetpack.pro/](https://jetpack.pro/)
   and do not accept any hire offers posted to these forums.

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/deprecated-function-create_function-18/#post-16556605)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
