• Resolved Dragonmoon

    (@dragonmoon)


    Hello PDB Team,

    I am using you nice Plugin on my webpage and was wandering if there is a way to send automatic mails on changes of certain admin fields to the associated user. I have an admin field (Checkbox) that is named “payed” that will be checks as soon as we receive the participants fee for the conference. What I would like to do, is to be able to send an automatic mail as soon as I check this field to the user, that his money has reached us and that he is now fully quallified to take part in the conference.

    Thanks for your work in advance

    BR
    Thorsten Chalas

    https://wordpress.org/plugins/participants-database/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author xnau webdesign

    (@xnau)

    There isn’t anything set up in the plugin that would do this, but if you know how to write PHP, there is a hook that can be used to trigger a callback function.

    Thread Starter Dragonmoon

    (@dragonmoon)

    Ok, thats a piity but I would have a look if my PHP experince is sufficient to find a solution. What is he hook that could be used to trigger a callback function to achieve the desired functionality.

    Plugin Author xnau webdesign

    (@xnau)

    Do you know how to write a callback for a WordPress hook? The basic idea is not difficult, but could prove tricky as you’ll need to interface with the WP email function and set up things like templates for your email body.

    Thread Starter Dragonmoon

    (@dragonmoon)

    I think I have an general idea about this topic. I found this artivle that seems to deal with some kind of this funcionality:

    https://codex.wordpress.org/Function_Reference/add_action

    The example in there is even dealing with email functionality, but it does not refernce entries from an external plugin but I think as a starting point it could help out somehow.
    I have to find out now how to access the email-adress of the specific entry and insert it into the email function and of course the hook that is responsible for saving the entry in the pdb.

    Plugin Author xnau webdesign

    (@xnau)

    OK, the plugin API is covered here…

    the filter you’re looking for is ‘pdb-before_submit_update’

    It’s not a hook, it’s a filter, I made a mistake before.

    I don’t provide support for this, you’re expected to know how to do this stuff.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Specific email after admin change of certain field’ is closed to new replies.