Last active
October 16, 2020 08:29
-
-
Save zorem/296c5b7cec97b79d9cc59f811ebd8d5b to your computer and use it in GitHub Desktop.
Code snippet for change the Style of Provider name in Orders List page
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
add_filter( 'get_ast_provider_name', 'get_ast_provider_name_filter', 10, 2 ); | |
function get_ast_provider_name_filter( $tracking_provider, $results ) { | |
if ($tracking_provider == 'USPS' ) { | |
return "<span style='color:blue'>".$tracking_provider."</span>"; | |
} | |
return $tracking_provider; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment