Add related product after add to cart button on single product pages in WooCommerce

Add related product after add to cart button on single product pages in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

// Remove related products from their default location
remove_action('woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);
// Add back related products in a different location
add_action('woocommerce_after_add_to_cart_button', 'woocommerce_output_related_products', 10); 

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.