woocommerce_email_stock_notification_intro_content
Allows modifying the email introduction content.
Usage
add_filter( 'woocommerce_email_stock_notification_intro_content', 'wp_kama_woocommerce_email_stock_notification_intro_content_filter', 10, 3 );
/**
* Function for `woocommerce_email_stock_notification_intro_content` filter-hook.
*
* @param $format_string
* @param $object
* @param $that
*
* @return
*/
function wp_kama_woocommerce_email_stock_notification_intro_content_filter( $format_string, $object, $that ){
// filter...
return $format_string;
}
- $format_string
- -
- $object
- -
- $that
- -
Changelog
| Since 10.2.0 | Introduced. |
Where the hook is called
woocommerce_email_stock_notification_intro_content
woocommerce_email_stock_notification_intro_content
woocommerce_email_stock_notification_intro_content
woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php 89
return apply_filters( 'woocommerce_email_stock_notification_intro_content', $this->format_string( $this->get_option_or_transient( 'intro_content', $this->get_default_intro_content() ) ), $this->object, $this );
woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php 86
return apply_filters( 'woocommerce_email_stock_notification_intro_content', $this->format_string( $this->get_option_or_transient( 'intro_content', $this->get_default_intro_content() ) ), $this->object, $this );
woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php 88
return apply_filters( 'woocommerce_email_stock_notification_intro_content', $this->format_string( $this->get_option_or_transient( 'intro_content', $this->get_default_intro_content() ) ), $this->object, $this );