woocommerce_email_sent хук-событиеWC 5.6.0

Action hook fired when an email is sent.


add_action( 'woocommerce_email_sent', 'wp_kama_woocommerce_email_sent_action', 10, 3 );

 * Function for `woocommerce_email_sent` action-hook.
 * @param bool     $return Whether the email was sent successfully.
 * @param int      $id     Email ID.
 * @param WC_Email $that   WC_Email instance.
 * @return void
function wp_kama_woocommerce_email_sent_action( $return, $id, $that ){

	// action...
Whether the email was sent successfully.
Email ID.
WC_Email instance.

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

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

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

woocommerce/includes/emails/class-wc-email.php 721
do_action( 'woocommerce_email_sent', $return, $this->id, $this );

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

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