Tompi on "[Plugin: WooCommerce] Custom billing fields not displaying in order admin"

ساخت وبلاگ

Yeah, Thank you Mike!

It was the filter I was looking for.

If this can help someone else, here is the code I used.

add_filter('woocommerce_email_customer_details_fields', 'tompi_add_email_billing_field', 15, 3); function tompi_add_email_billing_field( $fields, $sent_to_admin, $order ) { $fields['billing_DNI'] = array( 'label' => __('ID Card'), 'value' => $order->billing_DNI ); retu $fields; }

I agree with Brand, I think you should include it in the documentation at I didn't found it even after hours of googling.

Anyway, thanks for your help!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 68 تاريخ : پنجشنبه 2 ارديبهشت 1395 ساعت: 15:04