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:
David Anderson 2016-05-26 14:44:51 +01:00
parent 18b45f55cd
commit 6cd2fc12f0
1 changed files with 1 additions and 1 deletions

View File

@ -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>