Skip to content

Instantly share code, notes, and snippets.

@themepaint
Created October 12, 2015 03:49
Show Gist options
  • Save themepaint/a5a358dfd4562bccb429 to your computer and use it in GitHub Desktop.
Save themepaint/a5a358dfd4562bccb429 to your computer and use it in GitHub Desktop.
YITH Wishlist Icon Filtering
function iconWishlist($value){
return '<i class="fa fa-heart"></i><span>Add to wishlist</span>';
}
function iconWishlistAdd(){
return '<i class="fa fa-check"></i><span>View wishlist</span>';
}
add_filter( 'yith_wcwl_button_label','iconWishlist');
add_filter( 'yith-wcwl-browse-wishlist-label','iconWishlistAdd' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment