Place customer IP inside a span for easier access
I want to code something that shows a country flag / link to ipinfo.io next to the customer IP address on the order dashboard page. Putting the IP address inside a span makes it easier to locate without ugly hacks / less prone to breakage.
This commit is contained in:
parent
18b45f55cd
commit
6cd2fc12f0
|
@ -188,7 +188,7 @@ class WC_Meta_Box_Order_Data {
|
|||
}
|
||||
|
||||
if ( $ip_address = get_post_meta( $post->ID, '_customer_ip_address', true ) ) {
|
||||
echo __( 'Customer IP', 'woocommerce' ) . ': ' . esc_html( $ip_address );
|
||||
echo __( 'Customer IP', 'woocommerce' ) . ': <span class="customer_ip">' . esc_html( $ip_address ) . '</span>';
|
||||
}
|
||||
?></p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue