Atenção!

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

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

Ignorar

Descrição

The wpforms_payment-multiple_field_html_value_images filter is used to hide the Image Choices from the email notification when using the Multiple Items payment field.

Parâmetros

$value_images
(bool) (Required) Determines to show or hide images inside email notifications. Default is true (to show).

Origem

wpforms/includes/fields/class-base.php

Mais Informações

The wpforms_payment-multiple_field_html_value_images filter can be used to hide the image choices inside the email notification for the Multiple Items payment field.

Similarly, the wpforms_checkbox_field_html_value_images filter is used in the same way when using the Checkbox form field, the wpforms_radio_field_html_value_images is used for the Multiple Choice form field and the wpforms_payment-checkbox_field_html_value_images is used for the Checkbox Items payment field.

Exemplo

/*
 * Filter to hide the image choices from the Multiple Items Payment Field
 *
 * @link https://wpforms.com/developers/wpforms_payment-multiple_field_html_value_images/
 *
 * @param $value_images  Default is false.
 * @return bool 
 */

add_filter( 'wpforms_payment-multiple_field_html_value_images', '__return_false' );

Artigos de Referência

How to Hide Image Choices in Notification Emails