Home › Forums › Backend Issues (wp-admin) › WooCommerce Memberships: post_type is equal to "User Membership" not working › Reply To: WooCommerce Memberships: post_type is equal to "User Membership" not working
WooCommerce Memberships is to blame for this. They have a function that removes ALL metaboxes from any other plugins.
The issue only arose recently because ACF used to force metaboxes to appear, but now is more compliant with best practices.
To fix this problem, SkyVerge (WooCommerce Memberships developers) have provided the following code snippet: https://github.com/skyverge/wc-plugins-snippets/blob/master/woocommerce-memberships/admin/acf-compat-add-field-groups.php
It can be put in your functions.php file or implemented using a free plugin called “Code Snippets”. The function basically allows ACF metabozes/field groups to appear on WooCommerce Membership related post types (e.g. single user memberships and/or membership plans).
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!
© 2022 Advanced Custom Fields.