Why unicode emojis in wordpress displayed with <img> tag? Why unicode emojis in wordpress displayed with <img> tag? wordpress wordpress

Why unicode emojis in wordpress displayed with <img> tag?


There is a great answer here on wordpress development that tells you how to disable the svg styled icons, its this line:

add_filter( 'emoji_svg_url', '__return_false' );

Also check out the other hooks that you might need to fully disable emojis.

Wordpress uses svg emojis for two reasons I think:

  1. Their emojis are more "flat" and therefore look more modern
  2. When being used as images, emojis can have different sizes than the text sourrounding them.


You can try to check this settings - wordpress dashboard > settings > writing > Convert emoticons to graphics


I have no idea how to undo this in WP.

As for 'why' they do it: I would think it has to do with unicode support: it's pretty good right now, but I imagine it wasn't always that way. Images are universally supported by browsers.