Skip Navigation

[Resolved] Issue with Delete Relationship after adding a new post relationship in BETA

This support ticket is created 6 years, 6 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.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#873032
equipment-example.png

I am trying to: Delete a post relationship using a view Delete Relationship link after saving a relationship.

Link to a page where the issue can be seen: hidden link (webpublic, twigbrow$er )

I expected to see: After adding a new relationship, the page reloads with appropriate form message. After the reload, I expect to be able to click Remove (Delete Relationship link) in the view and have a relationships removed.

Instead, I got: It works fine in all circumstances except when I add a new relationship and then try to remove a relationship directly after. In which case nothing happens.

#873073

Also, is there a CRED API hook that will run on Relationship Form submit? I need to hook this, but cred_save_data does not fire when I submit relationship forms. Thank you!

#875281

Hello,

Q1) Delete a post relationship using a view Delete Relationship link after saving a relationship.
Please try the delete link as an administrator user, the Delete Relationship link won't work as a guest user.

Q2) is there a CRED API hook that will run on Relationship Form submit?
Unfortunately, there isn't such a built-in feature within current CRED form beta version, see the document:
https://toolset.com/documentation/programmer-reference/cred-api/
There isn't any action hook for Relationship form.

If you agree, we can put it as a feature request, our developers will evaluate it.

#877274

Thank you for your reply.

Q1) I am always logged in as administrator and the link still does not work directly after adding a new relationship.

Q2) Ok, thank you. I will attempt to hook this using save_post with conditionals to target this form.

#881959

Q1) The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks