Replies: 3 comments
-
Well if you are using bi directional relationships it's removed on the other side - but I can see a use case a use case for it, related to #5085 - at least add a warning like are you sure ;) … thoughts @pglewis ? |
Beta Was this translation helpful? Give feedback.
-
Yea If it could say something like the message below that would be super helpful.
|
Beta Was this translation helpful? Give feedback.
-
Hi! I crossed the same issue (https://wordpress.org/support/topic/delete-pod-used-as-a-related-to-field-in-another-pod/). I tried some WP and PODs FW hooks and played with PODs metadata and here is what I came up with.
I just put the following code in theme file functions.php. I had to play with WP user session variables and administration notices to make it work.
|
Beta Was this translation helpful? Give feedback.
-
Currently you are able to delete a content type even though it's being referenced from another content type. It would be great if there was a way to manually limit that functionality via a pre_delete hook to enforce data integrity within relationships.
If you could create something like the code snippet below in https://github.com/pods-framework/pods/blob/2.x/classes/PodsAPI.php#L5512. That would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions