woocommerce_email_attachments хук-фильтрWC 1.0

Get email attachments.

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

add_filter( 'woocommerce_email_attachments', 'wp_kama_woocommerce_email_attachments_filter', 10, 4 );

/**
 * Function for `woocommerce_email_attachments` filter-hook.
 * 
 * @param  $array  
 * @param  $id     
 * @param  $object 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_email_attachments_filter( $array, $id, $object, $that ){

	// filter...
	return $array;
}
$array
-
$id
-
$object
-
$that
-

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

WC_Email::get_attachments()
woocommerce_email_attachments
WC_Emails::low_stock()
woocommerce_email_attachments
WC_Emails::no_stock()
woocommerce_email_attachments
WC_Emails::backorder()
woocommerce_email_attachments
woocommerce/includes/emails/class-wc-email.php 434
return apply_filters( 'woocommerce_email_attachments', array(), $this->id, $this->object, $this );
woocommerce/includes/class-wc-emails.php 638
apply_filters( 'woocommerce_email_attachments', array(), 'low_stock', $product, null )
woocommerce/includes/class-wc-emails.php 672
apply_filters( 'woocommerce_email_attachments', array(), 'no_stock', $product, null )
woocommerce/includes/class-wc-emails.php 710
apply_filters( 'woocommerce_email_attachments', array(), 'backorder', $args, null )

Где используется хук в WooCommerce

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