Atenção!

Este artigo contém código PHP e destina-se a desenvolvedores. Oferecemos este código como uma cortesia, mas não fornecemos suporte para personalizações de código ou desenvolvimento de terceiros.

Para orientação extra, consulte o tutorial do WPBeginner sobre como adicionar código personalizado.

Dispensar

Como Desabilitar os Ícones de Emoji em Notificações de Formulário

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.

By default, the emoji icons will automatically be included in all form notifications when using the Rating field.

Criando seu formulário

First, you’ll need to create your form and set up your Rating field.

add your rating field

If you need assistance with this, please check out this documentation.

Disabling the rating icons

To disable these icons in the form notifications, you’ll need to add this snippet to your site.

If you need help in how to add snippets to your site, please review this article.

/**
 * Filters the disable the emoji icons in notification emails.
 *
 * @link   https://wpforms.com/developers/how-to-disable-the-emoji-rating-icons-in-form-notifications/
 */

add_filter( 'wpforms_rating_field_emoji', '__return_false' );

By using this snippet, this would be applied to all email notifications.

And that’s it! You’ve now successfully added a snippet to disable the emoji icons from all form notifications.

Using the code snippet you can easily disable emoji icons from the 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.

Filtro de Referência

wpforms_campo_avaliacao_emoji