Home › Forums › Backend Issues (wp-admin) › Hook to be executed if a value is changed, removed or added › Reply To: Hook to be executed if a value is changed, removed or added
If your field is a relationship or post object field the only thing that is saved in the DB is the post ID of the related post. When you use get_field() ACF does a query to get that post. If that post is changed then the change should already be reflected. If thee post is deleted then ACF should return nothing. However, if the post is in the trash ACF will still return post because it queries by the post ID and not the status.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.