Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Last active April 12, 2021 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/2e858e85b8a4aceddd61195dada5c1d8 to your computer and use it in GitHub Desktop.
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.
<?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