Home Forums Themes Support HelpDesk Need 2 knowledge base modules?

This topic contains 32 replies, has 2 voices, and was last updated by  Harry 6 months ago.

Viewing 3 posts - 31 through 33 (of 33 total)
  • Author
    Posts
  • #20332

    Hi,

    Please try with below code

    // Redéfinir la fonction de notification de l'utilisateur
    if ( !function_exists('wp_new_user_notification') ) {
        function wp_new_user_notification( $user_id, $plaintext_pass = '' ) {
            $user = new WP_User($user_id);
     
            $user_login = stripslashes($user->user_login);
            $user_email = stripslashes($user->user_email);
     
            $message  = sprintf(__('Nouvelle inscription d\'utilisateur sur %s:'), get_option('blogname')) . "\r\n\r\n";
            $message .= sprintf(__('Nom d\'utilisateur: %s'), $user_login) . "\r\n\r\n";
            $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n";
     
            @wp_mail(get_option('admin_email'), sprintf(__('[%s] Enregistrement d\'un nouvel utilisateur'), get_option('blogname')), $message);
     
            if ( empty($plaintext_pass) )
                return;
     
            $message  = __('Salut,') . "\r\n\r\n";
            $message .= sprintf(__("Bienvenue à %s! Voici comment vous connecter:"), get_option('blogname')) . "\r\n\r\n";
            $message .= wp_login_url() . "\r\n";
            $message .= sprintf(__('Nom d\'utilisateur: %s'), $user_login) . "\r\n";
            $message .= sprintf(__('Mot de passe: %s'), $plaintext_pass) . "\r\n\r\n";
            $message .= sprintf(__('Si vous avez des problèmes, s\'il vous plaît contactez-moi à %s.'), get_option('admin_email')) . "\r\n\r\n";
            $message .= __('Cordialement!');
     
            wp_mail($user_email, sprintf(__('[%s] Votre nom d\'utilisateur et mot de passe'), get_option('blogname')), $message);
     
        }
    }

    Best regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    #20335

    Hello,

    I will test, this code? your code but in the “functions.php” file of the child template? or I create a new file and add it to “/ wp-content / plugins /”?
    And after the activity as a plugin

    Thank you

    #20354

    Hi,

    Please add the code to helpdesk-child > functions.php

    Best regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 posts - 31 through 33 (of 33 total)

You must be logged in to reply to this topic.