DigitalRefresh
11/13/2018 - 9:18 PM

Hide Meta data section in user profiles #ACF #hide #user

"ACF for Woocommerce" adds Meta Data section to user profiles that show every custom field despite location rules. This code hides it.

//Hide the Meta data section that the plugin "ACF for Woocommerce" reveals in user profiles
global $ACF_Woo_Display;
		remove_filter( 'show_user_profile', array($ACF_Woo_Display, 'acf_woocommerce_add_fields_to_user') );
		
//If that solution fails comment out LN42 from acf-for-woo/includes/services/class-acf-woocommerce-render 
//add_filter('show_user_profile', array(&$this, 'acf_woocommerce_add_fields_to_user'), 11);

//If that also fails comment out LN 412-482 from acf-for-woo/includes/services/class-acf-woocommerce-render