woocommerce_email_editor_send_preview_email_before_wp_mail
Sends an email preview.
Usage
add_action( 'woocommerce_email_editor_send_preview_email_before_wp_mail', 'wp_kama_woocommerce_email_editor_send_preview_before_wp_mail_action', 10, 3 );
/**
* Function for `woocommerce_email_editor_send_preview_email_before_wp_mail` action-hook.
*
* @param string $to The recipient email address.
* @param string $subject The subject of the email.
* @param string $body The body content of the email.
*
* @return void
*/
function wp_kama_woocommerce_email_editor_send_preview_before_wp_mail_action( $to, $subject, $body ){
// action...
}
- $to(string)
- The recipient email address.
- $subject(string)
- The subject of the email.
- $body(string)
- The body content of the email.
Where the hook is called
woocommerce_email_editor_send_preview_email_before_wp_mail
woocommerce/packages/email-editor/src/Engine/class-send-preview-email.php 169
do_action( 'woocommerce_email_editor_send_preview_email_before_wp_mail', $to, $subject, $body );
Where the hook is used in WooCommerce
woocommerce/src/Internal/EmailEditor/Integration.php 144
add_action( 'woocommerce_email_editor_send_preview_email_before_wp_mail', array( $this, 'send_preview_email_before_wp_mail' ), 10 );