Last active
April 12, 2021 19:10
-
-
Save clifgriffin/2e858e85b8a4aceddd61195dada5c1d8 to your computer and use it in GitHub Desktop.
How to setup icons for WooCommerce statuses on the CheckoutWC thank you page.
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 | |
// Do NOT include the opening php tag. | |
// Place in your theme's functions.php file | |
// Default WooCommerce order statuses | |
// - pending | |
// - processing | |
// - on-hold | |
// - completed | |
// - cancelled | |
// - refunded | |
// - failed | |
add_filter( 'cfw_thank_you_status_icon_pending', 'my_pending_icon' ); | |
function my_pending_icon( $icon ) { | |
$icon = 'fa fa-check'; | |
return $icon; | |
} | |
// You can copy and modify the above example for each status you would like to define |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment