Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active December 29, 2023 19:51
Show Gist options
  • Save woogists/056cf0747aa752a4bc4d0688d6f8ce8d to your computer and use it in GitHub Desktop.
Save woogists/056cf0747aa752a4bc4d0688d6f8ce8d to your computer and use it in GitHub Desktop.
USPS: Add Envelope as a service
<?php
/**
* Add letters and envelopes to international services.
*/
add_filter( 'wc_usps_services', function( $services ) {
$services['I_FIRST_CLASS']['services']['13'] = "First Class Mail&#0174; International Letters";
$services['I_FIRST_CLASS']['services']['14'] = "First Class Mail&#0174; International Large Envelope";
return $services;
} );
@dgc1957
Copy link

dgc1957 commented Dec 29, 2023

Hi, I am adding this to my snippets and it has showed p in the backend bt is NOT allowing it to be used when a customer adds an address. WHat am I doing or setting up incorrectly? Thanks for any help.
Screenshot 2023-12-29 at 1 50 57 PM
Screenshot 2023-12-29 at 1 50 46 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment