Home › Forums › Backend Issues (wp-admin) › ACF fields in WooCommerce Membership Plans › Reply To: ACF fields in WooCommerce Membership Plans
It needs to be a different filter. so i coded(copy pasted) this:
function wb_wc_memberships_for_teams_allowed_meta_box_ids( $allowed_meta_box_ids ) {
if ( function_exists( 'acf_get_field_groups' ) ) {
$field_groups = array_merge(
acf_get_field_groups( array( 'post_type' => 'wc_memberships_team' ) )
);
foreach ( $field_groups as $field_group ) {
$allowed_meta_box_ids[] = 'acf-' . $field_group['key'];
}
}
return $allowed_meta_box_ids;
}
add_filter( 'wc_memberships_for_teams_allowed_meta_box_ids', 'wb_wc_memberships_for_teams_allowed_meta_box_ids' );
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.