Instantly share code, notes, and snippets.

Embed
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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment