Created
January 25, 2017 23:52
-
-
Save WPprodigy/d5892960ffc24fd3c7540dd3a2ec6517 to your computer and use it in GitHub Desktop.
Add an extra button on single product pages in WooCommerce
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
add_action( 'woocommerce_after_add_to_cart_button', 'wc_ninja_add_extra_button', 20 ); | |
function wc_ninja_add_extra_button() { | |
echo "<a href='#' class='button'>Return to shop</a>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What plug-ins must be installed?