woocommerce_reset_password_notification

ACTION woocommerce\includes\shortcodes\class-wc-shortcode-my-account.php (ligne 339) github
Handles sending password retrieval email to customer. Based on retrieve_password() in core wp-login.php.

Paramètres

Entrée :
$user_login, $key
Sortie :
@return bool True: when finish. False: on error

Utilisation

// Ajouter une fonction au hook action 'woocommerce_reset_password_notification'
add_action('woocommerce_reset_password_notification', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($user_login, $key) {
    // Votre code ici
    error_log('Hook woocommerce_reset_password_notification déclenché');
}

Actualités

Chargement des actualités...