woocommerce_emails_general_block_content_emails_without_order_details │ хук-фильтр │ WC 10.5.0

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

Использование

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 of email IDs that should not display order details.

Список изменений

С версии 10.5.0 Введена.

Где вызывается хук

В файле: /templates/emails/block/general-block-email.php
woocommerce_emails_general_block_content_emails_without_order_details
woocommerce/templates/emails/block/general-block-email.php 120
$emails_without_order_details = apply_filters( 'woocommerce_emails_general_block_content_emails_without_order_details', array() );

Где используется хук в 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' ) );