Remove Smilies, once and for all
One of the most annoying features ever in WordPress is the "feature" to convert smilies into images of smileys, MSN style. Where lots of stuff like this is dismissed these days as "plugin territory", this annoying feature has been in WP since 0.71...
Anyway, sometimes you'll want to disable this feature from within your theme, or maybe even as a sitewide plugin to disable it all over your WordPress MU installation. It's pretty simple to do:
function yst_remove_smileys($bool) {
return false;
}
add_filter('option_use_smilies','yst_remove_smileys',99,1);If you want to do that sitewide, add a plugin header to it and throw it in the mu-plugins dir of your WordPress MU installation.



by Stijn on 14 July, 2009 at 14:05
So this would do exactly the same as disabling the emoticon-option under 'Settings' > 'Writing'?
by Joost de Valk on 14 July, 2009 at 14:06
Yes, but for all blogs in a WP MU installation at once :)
by Lyndi on 24 July, 2009 at 11:15
This is something I have been wanting to do for so long now. These things just mess up the line-spacing in the comments etc. Smilies are also being mis-used these days. People believe that horrid, sarcastic remarks are somehow justified if you add a smiley to the end. Now if only you could figure out a way of getting rid of the mentioned comments.
by Bouke van der Bijl on 24 July, 2009 at 15:20
Why cant you just use
add_filter('option_use_smilies',false,99,1);
?
by tj on 20 August, 2009 at 20:00
Buhahahaha :)
I am saying something useful
by Ryros on 25 August, 2009 at 13:58
I've been trying to remove these non-seo optimized smileys for some time. This is great!
by Email Marketing Solutions on 6 October, 2009 at 11:27
Informative post. You are doing very well job! keep it up.