woocommerce_email_editor_send_preview_email_after_wp_mail
Usage
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
- -
Where the hook is called
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 );
Where the hook is used in WooCommerce
woocommerce/src/Internal/EmailEditor/Integration.php 145
add_action( 'woocommerce_email_editor_send_preview_email_after_wp_mail', array( $this, 'send_preview_email_after_wp_mail' ), 10 );