Home › Forums › Backend Issues (wp-admin) › Add ACF to existing Woocommerce metabox › Reply To: Add ACF to existing Woocommerce metabox
Gave it a shot. With the code below custom field data is not saved from the embedded field group. I’m also noticing ACF fields in other groups (added to the post type the normal way) is also not saved. When the Woocommerce code is removed other field group does save.
add_action( 'woocommerce_product_options_general_product_data', function() {
echo '<div class="options_group">';
acf_form([
'field_groups' => [233],
'form' => false,
]);
echo '</div>';
});
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.