Menu Close

Fix : Cool-tag-cloud – Function create_function() is deprecated

Updated On January 11, 2019
You are here:
  • KB
  • Wordpress
  • Fix : Cool-tag-cloud - Function create_function() is deprecated
< Back

Locate folder/file : WP-CONTENT / PLUGINS / COOL-TAG-CLOUD / COOL-TAG-CLOUD.PHP .
Search for register_widget( “Cool_Tag_Cloud_Widget” ) and replace the line.

Error:
add_action(‘widgets_init’, create_function(”, ‘register_widget( “Cool_Tag_Cloud_Widget” );’));
—
Fix:
add_action(‘widgets_init’, function() { register_widget( “Cool_Tag_Cloud_Widget” ); }, 10, 0);

Comments are welcome.

DFX.lv is a website about gamedev, tech, blog, personal shared space unshackled from bullshit.

NSFW & Parental Advisory Warning

DFX.lv is not safe for work and is not kids friendly. Posts on this website can display explict gore, nudity, blood, crude humor and terrible opinions.

“Rather a painful ending than an endless pain."
%d bloggers like this: