Would you like to disable the emoji icons that show up in the form notifications when using the Rating field? You may not require the icons to come through the notification so using a PHP code snippet you can easily disable this option. In this tutorial, we’ll show you how to disable these icons from showing.
By default, the emoji icons will automatically be included in all form notifications when using the Rating field.
To disable these icons in the form notifications, you’ll need to copy this code over to your site.
/** * Filters the inclusion of emoji icons in notification emails. * * @link https://wpforms.com/developers/how-to-disable-the-emoji-rating-icons-in-form-notifications/ * * @param $enable_emojis * @return bool */ add_filter( 'wpforms_rating_field_emoji', '__return_false' );
And that’s it! You’ve now successfully disabled the emoji icons from all form notifications. Would you like to change the style of these icons on your form? Take a look at our article on How to Customize the Look of the Rating Icons.
Filter Reference: wpforms_rating_field_emoji