Tag: gists

  • WooCommerce – Remove product data tabs and hook content in sequence instead

    This file contains 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 Show hidden characters <?php // Do not include this if already open! /** * Remove existing tabs from single […]

  • WooCommerce – Change number of displayed upsells on product pages

    This file contains 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 Show hidden characters add_filter( 'woocommerce_upsell_display_args', 'custom_woocommerce_upsell_display_args' ); function custom_woocommerce_upsell_display_args( $args ) { $args['posts_per_page'] = 5; // Change this number […]