Add Fields to address
-
Hello,
Your PlugIn is a great value ??
I would like add a field in Address.I succeed to doo it into ‘info fileds’ with this
function example_custom_order_fields( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, ‘pickup_location’, true ) ) {
$new_fields[‘pickup_location’] = array(
‘label’ => ‘Site VAE’,
‘value’ => get_post_meta( $order->id, ‘pickup_location’, true )
); }
return array_merge( $fields, $new_fields );
}
add_filter( ‘wcdn_order_info_fields’, ‘example_custom_order_fields’, 10, 2 );But How to do this in “address billing”
Thanks again for this great plugin
Bests regards
- The topic ‘Add Fields to address’ is closed to new replies.