Last active
October 8, 2020 00:06
-
-
Save ko31/72b2f39bec6c4f7a87a5f03ef9226689 to your computer and use it in GitHub Desktop.
Add japanese providers for WooCommerce Shipment Tracking
This file contains 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 japanese providers for WooCommerce Shipment Tracking | |
* | |
* @param array $providers | |
* | |
* @return array | |
*/ | |
add_filter( 'wc_shipment_tracking_get_providers', function ( $providers ) { | |
$providers = array_merge( $providers, [ | |
'Japan' => [ | |
'ヤマト運輸' => 'https://toi.kuronekoyamato.co.jp/cgi-bin/tneko', | |
'佐川急便' => 'https://k2k.sagawa-exp.co.jp/p/sagawa/web/okurijoinput.jsp', | |
'日本郵便' => 'https://trackings.post.japanpost.jp/services/srv/search/input', | |
'日本通運' => 'https://www.nittsu.co.jp/support/search', | |
'西濃運輸' => 'https://track.seino.co.jp/kamotsu/GempyoNoShokai.do', | |
'福山通運' => 'https://corp.fukutsu.co.jp/situation/tracking_no', | |
'第一貨物' => 'http://www.daiichi-kamotsu.co.jp/chase/contact_num/', | |
], | |
] ); | |
return $providers; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment