Last active
December 29, 2023 19:51
-
-
Save woogists/056cf0747aa752a4bc4d0688d6f8ce8d to your computer and use it in GitHub Desktop.
USPS: Add Envelope as a service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add letters and envelopes to international services. | |
*/ | |
add_filter( 'wc_usps_services', function( $services ) { | |
$services['I_FIRST_CLASS']['services']['13'] = "First Class Mail® International Letters"; | |
$services['I_FIRST_CLASS']['services']['14'] = "First Class Mail® International Large Envelope"; | |
return $services; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

