[Resolved] BP_XProfile_Field type is always web
- 
		Hello, I’m utilizing the Woocommerce Buddypress Integration with the additional xProfile Checkout Manager, referring to these plugins; 
 Woocommerce Buddypress Integration (PAID) – http://themekraft.com/store/woocommerce-buddypress-integration-wordpress-plugin/
 xProfile Checkout Manager (FREE) – https://wordpress.org/plugins/woocommerce-buddypress-integration-xprofile-checkout-manager/In the xProfile Checkout Manager they’re creating a $field object using BP_XProfile_Field as follows; 
 $field = new BP_XProfile_Field( $field_id );If I var_dump the object I noticed that no matter what kind of field it is it always states the type is web…. object(BP_XProfile_Field)#4428 (16) { [“id”]=> string(2) “19” [“group_id”]=> string(1) “5” [“parent_id”]=> string(1) “0” [“type”]=> string(3) “web” [“name”]=> string(21) “Work Province / State” [“description”]=> string(0) “” [“is_required”]=> string(1) “0” [“can_delete”]=> string(1) “1” [“field_order”]=> string(1) “6” [“option_order”]=> string(1) “0” [“order_by”]=> string(0) “” [“is_default_option”]=> string(1) “0” [“default_visibility”]=> string(6) “public” [“allow_custom_visibility”]=> string(7) “allowed” [“type_obj”]=> object(BP_XProfile_Field_Type_Textbox)#4430 (8) { [“validation_regex”:protected]=> array(1) { [0]=> string(6) “/^.*$/” } [“validation_whitelist”:protected]=> array(0) { } [“name”]=> string(8) “Text Box” [“category”]=> string(13) “Single Fields” [“accepts_null_value”]=> bool(false) [“supports_options”]=> bool(false) [“supports_multiple_defaults”]=> bool(false) [“field_obj”]=> *RECURSION* } [“data”]=> NULL } Why is this? Shouldn’t it indicate what type of xProfile field it is? I was hoping to use this to indicate it was an email to woocommerce for it’s validation. Any help in finding the posts true type appreciated. Thanks 
- The topic ‘[Resolved] BP_XProfile_Field type is always web’ is closed to new replies.