woocommerce_email_log_context
woocommerce_email_log_context
Appears in: woocommerce.10.9.3, woocommerce.10.9.4
Hook Type: filter
See hook in action
Displaying hooks found in version: woocommerce.10.9.4apply_filters('woocommerce_email_log_context') is found 2 times:
- /src/Internal/Email/EmailLogger.php line 122
* @param array $context The context array to be logged. * @param string $email_id The email type ID. * @param WC_Email $email The WC_Email instance. */ $context = (array) apply_filters( 'woocommerce_email_log_context', $context, $email_id, $email ); $type_label = ! empty( $context['is_test'] ) ? 'Test email' : 'Email'; if ( $success ) { $message = sprintf( '%s "%s"%s sent', $type_label, $email_id, $object_label ); } else { - /src/Internal/Email/EmailLogger.php line 283
* This filter is documented in src/Internal/Email/EmailLogger.php * * @since 10.9.0 */ $context = (array) apply_filters( 'woocommerce_email_log_context', $context, $email_id, $email ); wc_get_logger()->log( WC_Log_Levels::NOTICE, $message, $context ); } /** * Resolve a recipient email string to an identifier safe for logging.