Navigation überspringen

[Gelöst] Can I programmatically change notification?

This support ticket is created vor 1 Jahr, 1 Monat. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 1 Jahr, 1 Monat.

Assistiert von: Minesh.

Author
Artikel
#2699733

I am using a toolset CRED form for creating a custom post and then I would like to send a different email to the email recepient based on their registration status.

If email is registered --> send notification A
If email is not registered --> send notification B

How can I do that?

#2699786

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to use the Toolset Form's hook "cred_notification_event_type"
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_notification_event_type
Where:
- The "cred_notification_event_type" hook is used to register or define the custom notification event type.

Hook "cred_custom_notification_event_type_condition"
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_custom_notification_event_type_condition
Where:
"cred_custom_notification_event_type_condition" hook is used during evaluation of a custom notification condition, when the event type is custom. It should be used in combination with the cred_notification_event_type hook.

Here is the related ticket that might help you:
- https://toolset.com/forums/topic/cred-form-notification-email-conditional-on-generic-field/#post-1158823

You can add your business logic and adjust the code added to the hook and check your custom field value.