Title: Alternate Code to Plugin?
Last modified: October 27, 2016

---

# Alternate Code to Plugin?

 *  Resolved [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/)
 * Hi, I know this is a well built and supported plugin, but I was wondering if 
   it was the same/similar/different from adding the following to your functions.
   php
 * // REMOVE EMOJI ICONS
    remove_action(‘wp_head’, ‘print_emoji_detection_script’,
   7); remove_action(‘wp_print_styles’, ‘print_emoji_styles’);
 * All I want to know is, is this a correct and clean way to accomplish this? No
   other side effects? Will this plugin to the same thing effectively?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8438580)
 * That code will not be as effective as the plugin, which does a little more.
 * The plugin will do the same thing, but in a better way.
 *  Plugin Author [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8438586)
 * You can see all the extra stuff the plugin does here … [https://plugins.svn.wordpress.org/disable-emojis/tags/1.5.2/disable-emojis.php](https://plugins.svn.wordpress.org/disable-emojis/tags/1.5.2/disable-emojis.php)
 *  Thread Starter [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8439859)
 * Neat, thanks for the response! I’ll probably just use your plugin but for my 
   own education, would I technically be able to simply add that code within disable-
   emojis.php into my functions.php? With the obvious disadvantage that your plugin
   will be updated as things change, and code in my functions.php would of course
   not.
 * But is that how it would work?
 *  Plugin Author [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8442535)
 * functions.php behaves almost identically to a plugin. You can often copy and 
   paste an entire plugins code directly into functions.php and have it use it there.
    -  This reply was modified 9 years, 6 months ago by [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/).
 *  Thread Starter [acann](https://wordpress.org/support/users/acann/)
 * (@acann)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8451277)
 * Thanks for the great responses Ryan, I’m marking this as resolved. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Alternate Code to Plugin?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/disable-emojis_d3c7d6.svg)
 * [Disable Emojis (GDPR friendly)](https://wordpress.org/plugins/disable-emojis/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-emojis/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-emojis/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-emojis/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-emojis/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-emojis/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [manual](https://wordpress.org/support/topic-tag/manual/)

 * 5 replies
 * 2 participants
 * Last reply from: [acann](https://wordpress.org/support/users/acann/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/alternate-code-to-plugin/#post-8451277)
 * Status: resolved