Support

Account

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' );