Skip Navigation

[Resolved] cred-delete-relationship

This support ticket is created 2 years, 11 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Bob 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2047697

Bob

Hi I need to fire off some additional code when a relationship is deleted using the shortcode cred-delete-relationship. I see there isn't a hook on this (or have I missed it?) so do any of the standard WordPress actions get triggered? If not any suggestion on how I can achieve this?
Thank in advance

#2048239

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Bob,

Thank you for getting in touch.

The hook below should work well for your purpose.
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_before_association_delete

This hook is triggered before the relationship is deleted.

Please let me know if this helps.
Thanks,
Shane

#2050467

Bob

All sorted and sorry I didn't find that trigger myself.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.