add_action()
-
Hi! FIrst of all, thank you so much for the great plugin! I am very very new to wordpress and I wanted to just extend your code outside of what’s available ??
I am creating a registration page for an event. I want to send a confirmation email after the user submits the form.
I added
add_action('new_registrant', array($this, func_to_send_email()));
in the bnfw.php file. (I also created a new dropdown menu specific to my registration. Added a new notification type ‘register-new-attendee’.. )Then I tried integrating with the new hook by calling
do_action('new_registrant')
from my template.. I was seeing errors before, complaining I was sending the wrong #of args but I believe all that is fixed now and I don’t see any errors in the log.But still no emails are getting sent. ?? And I don’t know how to debug like javascript (eg. console.log).
I tried print_r() and echo, as we well as setting WP_DEBUG to be true. And no luck.
Any help would be soo appreciate it! TY!!
- The topic ‘add_action()’ is closed to new replies.