/** * WooCommerce Mobile Orders * Show Customer Phone Number inside Billing column * Works with both HPOS and Legacy WooCommerce Orders */ /* ============================== * HPOS - WooCommerce Orders * ============================== */ add_action( 'manage_woocommerce_page_wc-orders_custom_column', 'autospex_show_phone_in_billing_column_hpos', 20, 2 ); function autospex_show_phone_in_billing_column_hpos( $column, $order ) { if ( 'billing_address' !== $column ) { return; } if ( ! $order instanceof WC_Order ) { return; } $phone = $order->get_billing_phone(); if ( ! empty( $phone ) ) { echo '
'; echo '📞 Phone: '; echo ''; echo esc_html( $phone ); echo ''; echo '
'; } } /* ============================== * Legacy WooCommerce Orders * ============================== */ add_action( 'manage_shop_order_posts_custom_column', 'autospex_show_phone_in_billing_column_legacy', 20, 2 ); function autospex_show_phone_in_billing_column_legacy( $column, $post_id ) { if ( 'billing_address' !== $column ) { return; } $order = wc_get_order( $post_id ); if ( ! $order ) { return; } $phone = $order->get_billing_phone(); if ( ! empty( $phone ) ) { echo '
'; echo '📞 Phone: '; echo ''; echo esc_html( $phone ); echo ''; echo '
'; } } /* ============================== * Mobile Styling * ============================== */ add_action( 'admin_head', 'autospex_mobile_order_phone_style' ); function autospex_mobile_order_phone_style() { $screen = get_current_screen(); if ( ! $screen ) { return; } if ( 'woocommerce_page_wc-orders' !== $screen->id && 'edit-shop_order' !== $screen->id ) { return; } ?>

আপনার হোস্টিং এর মেয়াদ শেষ