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.

%d bloggers like this: