Last active
July 31, 2020 13:45
-
-
Save plugin-republic/aaee34feb33e7631633995fd2593f646 to your computer and use it in GitHub Desktop.
Change location of Add to Wishlist button
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 prefix_wishlist_template_location( $template_hook, $product_id ) { | |
// Return your hook here | |
return 'woocommerce_single_product_summary'; | |
} | |
add_filter( 'woocommerce_wishlists_template_location', 'prefix_wishlist_template_location', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks very useful, have you got an example of how this would for example if we want this to appear above the product title?