Created
July 19, 2024 08:58
-
-
Save permanart/7972deda65cfab28cf9763a96a780d65 to your computer and use it in GitHub Desktop.
Displat custom button before checkout in cart wocoomerce
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
| function wa_before_co() { | |
| ?> | |
| <a href="https://domain.com" class="button">Your custom button</a> | |
| <?php | |
| } | |
| add_action( 'woocommerce_proceed_to_checkout', 'wa_before_co', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment