Readable Phone Numbers
Numbers are saved as +12015550123, which is right for other software but hard for people to read. With Readable phone numbers on, the same number shows as +1 201-555-0123.
Where readable numbers show#
- The order screen in WooCommerce > Orders
- Order emails
- The customer’s order pages in My Account
What doesn’t change#
The stored number stays in plain international format. Exports, SMS, CRM and other plugins still get +12015550123.
Turning it on or off#
Go to WooCommerce > Smart Phone Field > General and use Readable phone numbers. It’s on by default.
In code#
nahnu_spf_readable_phoneturns readable display on or off.nahnu_spf_display_phonechanges how a number is shown. It receives the readable number and the stored number.
add_filter( 'nahnu_spf_display_phone', function ( $formatted, $phone ) {
return $formatted;
}, 10, 2 );