Home › Forums › Pre-purchase Questions › How to replace existing plugin fields with ACF fields? › Reply To: How to replace existing plugin fields with ACF fields?
Hi,
Tell me if you want me to create a new thread, but this is basically the same question. I have another plugin that saves meta data to a custom post type. When I create a field in ACF with the same key I can see the value in that field, just as expected.
When I edit the field and save it does not update. What I think happens is that the other plugin hooks in later and update the previous value, from the original text field.
Is there any way to change the priority of the acf hook?
I have tried this, to save the new value the then replcade, without any success.
add_action('acf/save_post', 'my_acf_save_post');
function my_acf_save_post( $post_id ) {
$new_value = get_field('profile_subtitle_new', $post_id);
update_field('profile_subtitle', $new_value, $post_id);
}
Fredrik
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.