user-data

Custom VAT field issue in Woocommerce

我的未来我决定 提交于 2020-08-10 18:56:27
问题 I use the code below to add a VAT field in woocommerce address. It's works but, it throws this error: Notice: billing_vat est appelée de la mauvaise manière. Order properties should not be accessed directly. Backtrace: require('wp-admin/edit-form-advanced.php'), do_meta_boxes, WC_Meta_Box_Order_Data::output, WC_Order->get_formatted_billing_address, apply_filters('woocommerce_order_formatted_billing_address'), WP_Hook->apply_filters, custom_add_vat_formatted_billing_address, WC_Abstract_Legacy

Display user meta data values in admin user list custom columns in WordPress

自古美人都是妖i 提交于 2020-07-07 01:39:48
问题 For Woocommerce, with the help of this answer thread, I created some custom columns in Back end (Admin) user list: In the database, there are some meta_key values called billing_vatnr and billing_company coming from the WooCommerce registration form and saved in wp_usermeta table. What I'm trying to figure out is how to display the corresponding meta_value for those meta keys and show them in their respective column for each user. In other words, in the VAT Nr field, the content of the meta

Display user meta data values in admin user list custom columns in WordPress

痞子三分冷 提交于 2020-07-07 01:37:35
问题 For Woocommerce, with the help of this answer thread, I created some custom columns in Back end (Admin) user list: In the database, there are some meta_key values called billing_vatnr and billing_company coming from the WooCommerce registration form and saved in wp_usermeta table. What I'm trying to figure out is how to display the corresponding meta_value for those meta keys and show them in their respective column for each user. In other words, in the VAT Nr field, the content of the meta