woocommerce_email_editor_send_preview_email_after_wp_mail хук-событиеWC 1.0

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

add_action( 'woocommerce_email_editor_send_preview_email_after_wp_mail', 'wp_kama_woocommerce_email_editor_send_preview_after_wp_mail_action', 10, 4 );

/**
 * Function for `woocommerce_email_editor_send_preview_email_after_wp_mail` action-hook.
 * 
 * @param  $to      
 * @param  $subject 
 * @param  $body    
 * @param  $result  
 *
 * @return void
 */
function wp_kama_woocommerce_email_editor_send_preview_after_wp_mail_action( $to, $subject, $body, $result ){

	// action...
}
$to
-
$subject
-
$body
-
$result
-

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

Send_Preview_Email::send_email()
woocommerce_email_editor_send_preview_email_after_wp_mail
woocommerce/packages/email-editor/src/Engine/class-send-preview-email.php 178
do_action( 'woocommerce_email_editor_send_preview_email_after_wp_mail', $to, $subject, $body, $result );

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

woocommerce/src/Internal/EmailEditor/Integration.php 147
add_action( 'woocommerce_email_editor_send_preview_email_after_wp_mail', array( $this, 'send_preview_email_after_wp_mail' ), 10 );