This topic has 1 reply, 2 voices, and was last updated 6 years by Kieran_SQ.

  • Author
  • #179508
     emmanuel
    Participant

    hello guys when a subscriber  signs up to my site they would get a automatic  conformation email how do i customize the conformation email e.g i would like to add a temple for my conformation emails and to redirect them to there profile after the conformation have been accepted

    Attachments:
    You must be logged in to view attached files.
    #179569
     Kieran_SQ
    Moderator

    Hi,

    To edit the content of the BuddyPress emails you can go to WP Admin > Emails > All Emails and then select the email you wish to edit. In your case it should be titled ‘[{{{site.name}}}] Activate your account’.

    You can customize the appearance of the emails by going to WP Admin > Emails > Customize or by installing a third party email template plugin like WP HTML Mail which can be found here in the WordPress plugin repository https://wordpress.org/plugins/wp-html-mail/.

    You can use the below snippet in your functions.php file to redirect users upon first time login. You should add this to Appearance > Editor > SweetDate Child > Functions.php

    COPY CODE
    function buddydev_redirect_on_first_login( $redirect_to, $redirect_url_specified, $user ) {
     
        //check if we have a valid user?
        if ( is_wp_error( $user ) ) {
            return $redirect_to;
        }
     
        //check for user's last activity
        $last_activity =  bp_get_user_last_activity( $user->ID );
     
        if ( empty( $last_activity ) ) {
            //it is the first login
            //update redirect url
            //I am redirecting to user's profile here
            //you may change it to anything
            $redirect_to = bp_core_get_user_domain($user->ID );
        }
     
        return $redirect_to;
    }
     
    add_filter( 'login_redirect', 'buddydev_redirect_on_first_login', 110, 3 );

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?