Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Last active July 31, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/aaee34feb33e7631633995fd2593f646 to your computer and use it in GitHub Desktop.
Save plugin-republic/aaee34feb33e7631633995fd2593f646 to your computer and use it in GitHub Desktop.
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 );
@bradleyw92
Copy link

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