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: enlace oculto (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.
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!
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.
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.
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