Created
March 13, 2023 23:01
-
-
Save melek/4bf187bfb85faf3864069777ea6d9cc3 to your computer and use it in GitHub Desktop.
Change CTA URL for WooCommerce Gift Card Emails
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 | |
add_filter('woocommerce_gc_email_received_action_button_url', 'custom_giftcard_cta_url', 10, 1); | |
function custom_giftcard_cta_url($url) { | |
return get_home_url(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment