I have HivePress Booking plugin setup which sends below emails
Booking Confirmation
Booking Request
Booking Declined
Booking Cancelled (User)
Booking Cancelled (Guide)
Booking Accepted (User)
User Registration
Membership Approved
Message Received
Guided Outdoors Booking Reminder
When these emails are sent, I also want to send SMS to user and guide/vendor.
I have already coded for SMS with relatant APIs and SMS are sending from the website successfully.
I just want to know relatant hooks for above emails, so when those emails are triggered SMSs are send as well.
For Example:
add_action( 'hivepress/v1/emails/listing_reject/send', 'sk_listing_reject_sms', 10, 1 );
function sk_listing_reject_sms( $listing ) {
.
.
.
sendSMS($to, $subject);// This function for SMS is already coded.
}
If you are referring to email hooks, I recommend checking them out in WP Dashboard > Plugins > Plugin File Editor HivePress Bookings > includes > emails. For example, there is a class-booking-accept.php, then its hook will be /booking_accept/send.Action: hivepress/v1/emails/{email_name}/send | HivePress Hook Reference
The hooks you are using look good, I recommend debugging this using error_log, and make sure you are triggering these emails accurately (you can use a tool on Local WP that displays such messages). Also, I recommend checking the hook references, because you need to use an email object or another argument to the send hook HivePress Code Reference
Hi saagark22 I read your message about automatic notifications, I also need to code to send sms with email notifications. Can you help me: your code would help me a lot: my email: contact@muslimbnb.fr thank you in advance