Get the from name for outgoing emails.
get_option( 'woocommerce_email_from_name'
Sortie :
@param string $from_name Default wp_mail() name associated with the "from" email address. @return string
// Modifier la valeur avec le filtre 'woocommerce_email_from_name'
add_filter('woocommerce_email_from_name', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(get_option( 'woocommerce_email_from_name') {
// Modifier la valeur
return get_option( 'woocommerce_email_from_name';
}
Chargement des actualités...