• Resolved acann

    (@acann)


    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

    (@ryanhellyer)

    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

    (@ryanhellyer)

    You can see all the extra stuff the plugin does here … https://plugins.svn.www.ads-software.com/disable-emojis/tags/1.5.2/disable-emojis.php

    Thread Starter acann

    (@acann)

    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

    (@ryanhellyer)

    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.

    Thread Starter acann

    (@acann)

    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.