wc_payment_gateway_enabled_notification_email_addresses

wc_payment_gateway_enabled_notification_email_addresses

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.5.1

apply_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 );