woocommerce_email_from_name

FILTER woocommerce\includes\emails\class-wc-email.php (ligne 956) github
Get the from name for outgoing emails.

Paramètres

Entrée :
get_option( 'woocommerce_email_from_name'
Sortie :
@param string $from_name Default wp_mail() name associated with the "from" email address.
@return string

Utilisation

// 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';
}

Actualités

Chargement des actualités...