wc_payment_gateway_enabled_notification_email_addresses
wc_payment_gateway_enabled_notification_email_addresses
Appears in: woocommerce.8.5.1, woocommerce.8.5.2, woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('wc_payment_gateway_enabled_notification_email_addresses') is found 1 times:
- /includes/class-wc-payment-gateways.php line 203
* @param WC_Payment_Gateway $gateway The gateway that was enabled. * @return array The augmented array of email addresses to notify. * @since 8.5.0 */ $email_addresses = apply_filters( 'wc_payment_gateway_enabled_notification_email_addresses', array(), $gateway ); $email_addresses[] = $admin_email; $email_addresses = array_unique( array_filter( $email_addresses, function( $email_address ) { return filter_var( $email_address, FILTER_VALIDATE_EMAIL );