woocommerce_emails_general_block_content_emails_without_order_details filter-hookWC 10.5.0

Filter the list of email IDs that should not display order details.

Usage

add_filter( 'woocommerce_emails_general_block_content_emails_without_order_details', 'wp_kama_woocommerce_emails_general_block_content_without_order_details_filter' );

/**
 * Function for `woocommerce_emails_general_block_content_emails_without_order_details` filter-hook.
 * 
 * @param array $emails_without_order_details Array of email IDs that should not display order details.
 *
 * @return array
 */
function wp_kama_woocommerce_emails_general_block_content_without_order_details_filter( $emails_without_order_details ){

	// filter...
	return $emails_without_order_details;
}
$emails_without_order_details(array)
Array of email IDs that should not display order details.

Changelog

Since 10.5.0 Introduced.

Where the hook is called

In file: /templates/emails/block/general-block-email.php
woocommerce_emails_general_block_content_emails_without_order_details
woocommerce/templates/emails/block/general-block-email.php 108
$emails_without_order_details = apply_filters( 'woocommerce_emails_general_block_content_emails_without_order_details', array() );

Where the hook is used in WooCommerce

woocommerce/includes/emails/class-wc-email-admin-payment-gateway-enabled.php 74
add_filter( 'woocommerce_emails_general_block_content_emails_without_order_details', array( $this, 'exclude_from_order_details' ) );