We are currently syncing data between two different CPTs. We use a loop within the current_screen action with get_field and then update_field and occasionally depending on the circumstance of the transfer we use prepare_field to modify the field data before we update it (e.g. its class).
The question is what is the difference if one used load_value and update_value to achieve the same thing? We are confused about it and want to know if we are doing it properly or if the filters are more efficient then get_field and update_field.
Even if you wanted to use the load_value and update_value hooks to do filtering, you’d still need to use get_field() and update_field() to cause those hooks to be fired in the first place. So you’d essentially be creating a filter where one is not really required.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users