woocommerce_email_stock_notification_base_text_color filter-hookWC 10.2.0

woocommerce_email_stock_notification_base_text_color

Usage

add_filter( 'woocommerce_email_stock_notification_base_text_color', 'wp_kama_woocommerce_email_stock_notification_base_text_color_filter', 10, 2 );

/**
 * Function for `woocommerce_email_stock_notification_base_text_color` filter-hook.
 * 
 * @param  $wc_light_or_dark 
 * @param  $email            
 *
 * @return 
 */
function wp_kama_woocommerce_email_stock_notification_base_text_color_filter( $wc_light_or_dark, $email ){

	// filter...
	return $wc_light_or_dark;
}
$wc_light_or_dark
-
$email
-

Changelog

Since 10.2.0 Introduced.

Where the hook is called

EmailManager::add_stylesheets()
woocommerce_email_stock_notification_base_text_color
woocommerce/src/Internal/StockNotifications/Emails/EmailManager.php 163
$base_text = (string) apply_filters( 'woocommerce_email_stock_notification_base_text_color', wc_light_or_dark( $base, '#202020', '#ffffff' ), $email );

Where the hook is used in WooCommerce

Usage not found.