Custom code after a participant is approved
-
Hi there,
Thanks for this great plugin!
I was looking at this code snippet here: https://gist.github.com/xnau/f48ef79c35c99597734724c8cf97b2e9
Just wondering if there’s something close to this that can be added to the theme’s functions.php or something to trigger an action after a participant is approved by an admin?
I’m looking to add a user to our Mailster mailinglist after they have been approved.
A sketch:
`
add_action( 'pdb-????', 'xnau_mailinglist_signup' ); /** * does something when an admin approves a participant from the wordpress dashboard */ function xnau_mailinglist_signup( $post ) { if ( is_admin() ) { // add user to mailster } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom code after a participant is approved’ is closed to new replies.