Deprecated: Function create_function()
-
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);
- The topic ‘Deprecated: Function create_function()’ is closed to new replies.