WPIntell

Source evidence

remove it from email

Checkout Gateway for IRIS · support · 2025-12-18T17:37:00+00:00

questionsentiment
lowseverity
0.25relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 29 rows with source links

13.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
kapamarou resolved
Hi i am making a custom email template and i want to remove it from email the details that adds the plugin i tried to do something like this but it doesnt work . Can you gave a hint pls ? if ( ! empty( $gateways[‘iris_payments’] ) && is_object( $gateways[‘iris_payments’] ) ) { remove_action( ‘woocommerce_email_before_order_table’, array( $gateways[‘iris_payments’], ’email_instructions’ ), 10 ); } Ι found it just in case someone needs it add_action( ‘init’, ‘afentoulis_remove_iris_plugin_email_details’ ); function afentoulis_remove_iris_plugin_email_details() { // Αφαιρούμε τη συνάρτηση του plugin που τυπώνει IRIS details μέσα στο order details. if ( has_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’ ) ) { remove_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’, 10 ); } } Sure, you found the right solution. The IRIS details are added to WooCommerce emails via the woocommerce_email_order_details hook (callback: irisgw_add_iris_payment_details ), so removing that action is the correct approach. For best compatibility, it’s recommended to run the removal after plugins are loaded , so the action definitely exists: add_action( ‘init’, ‘afentoulis_remove_iris_plugin_email_details’ ); function afentoulis_remove_iris_plugin_email_details() { if ( has_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’ ) ) { remove_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’, 10 ); } } Add it to your child theme (functions.php) or via a snippets plugin, and the IRIS payment details will no longer appear in the order emails. Marking this thread as Resolved . 👍

Comments

2 shown
kapamarou 2025-12-18T17:43:00+00:00

Ι found it just in case someone needs it add_action( ‘init’, ‘afentoulis_remove_iris_plugin_email_details’ ); function afentoulis_remove_iris_plugin_email_details() { // Αφαιρούμε τη συνάρτηση του plugin που τυπώνει IRIS details μέσα στο order details. if ( has_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’ ) ) { remove_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’, 10 ); } }

vgdevsolutions 2026-02-24T09:54:00+00:00

Sure, you found the right solution. The IRIS details are added to WooCommerce emails via the woocommerce_email_order_details hook (callback: irisgw_add_iris_payment_details ), so removing that action is the correct approach. For best compatibility, it’s recommended to run the removal after plugins are loaded , so the action definitely exists: add_action( ‘init’, ‘afentoulis_remove_iris_plugin_email_details’ ); function afentoulis_remove_iris_plugin_email_details() { if ( has_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’ ) ) { remove_action( ‘woocommerce_email_order_details’, ‘irisgw_add_iris_payment_details’, 10 ); } } Add it to your child theme (functions.php) or via a snippets plugin, and the IRIS payment details will no longer appear in the order emails. Marking this thread as Resolved . 👍