Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Change location of Add to Wishlist button
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 );

This comment has been minimized.

Copy link

bradleyw92 commented Jul 31, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.