Skip to:
Content
Pages
Categories
Search
Top
Bottom

Send notification email to user when he change his general settings


  • hich-em
    Participant

    @hich-em

    Hello,
    1) Please i want when the user change his setting a green message in the page of profile general settings (~.com/members/hich-em/settings/) tell him changed successfully or error … i didn’t see it in my website for example i tried to change the email without giving the current password no erreur appears.

    2) i want when it changed successfully it send notification email tell him that his setting was changed

    thanks šŸ™‚

Viewing 5 replies - 1 through 5 (of 5 total)

  • Henry Wright
    Moderator

    @henrywright

    1) You will need to make sure the template_notices hook is in your template.

    2) I’m not sure if an email is sent on settings change by default, but if not, the general approach would be to hook a custom function to bp_core_general_settings_after_save. Within your custom function you should use wp_mail() to send the email.


    hich-em
    Participant

    @hich-em

    —–> 1) You will need to make sure the template_notices hook is in your template.

    —> how to add it in my template if does not exist

    —–> 2) Iā€™m not sure if an email is sent on settings change by default, but if not, the general approach would be to hook a custom function to bp_core_general_settings_after_save. Within your custom function you should use wp_mail() to send the email.

    —> in any file i can find bp_core_general_settings_after_save or i add it in bp-custom.php??


    Henry Wright
    Moderator

    @henrywright

    Regarding 1, have a read of the Template Hierarchy article. This will give you an overview of how templates work.

    You’ll need to know PHP in order to do point 2.


    hich-em
    Participant

    @hich-em

    Hello please i didn’t know what and where i will write can you help me please


    danbp
    Participant

    @danbp

    Sorry for you, but this is a common open-source situation.

    When you want something specific, you have to made it yourself or try to find another solution.
    If you don’t know how to achieve what you want, you can learn or hire somebody to make it for you.

    This is only a support forum for BuddyPress maintained by volonteers, not a school or a ready to use solution platform for special demands. Hope you undestand ! šŸ˜‰

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Send notification email to user when he change his general settings’ is closed to new replies.
Skip to toolbar