Skip to content

Instantly share code, notes, and snippets.

@zorem
Last active June 23, 2020 05:24
Show Gist options
  • Save zorem/1fd6f14e1ecc0e26605fd5072134b5b8 to your computer and use it in GitHub Desktop.
Save zorem/1fd6f14e1ecc0e26605fd5072134b5b8 to your computer and use it in GitHub Desktop.
Code for change tracking provider name in email, my account section and trackship tracking page
<?php
add_filter( 'ast_provider_title', 'ast_provider_title_fun' );
function ast_provider_title_fun($provider){
if($provider == 'UPS')$provider = 'Updated UPS';
return $provider;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment