deactivate product-page image slider on mobile

Ok I found the solution, with this code in functions.php: add_action( ‘after_setup_theme’, ‘remove_hemen_theme_support’, 100 ); function remove_hemen_theme_support() { remove_theme_support( ‘wc-product-gallery-zoom’ ); remove_theme_support( ‘wc-product-gallery-lightbox’ ); remove_theme_support( ‘wc-product-gallery-slider’ ); } The line remove_theme_support( ‘wc-product-gallery-slider’ ); deactivate the slider.

Sort WooCommerce data with WP-CRON?

This doesn’t sound like a bad approach to me. The thing to keep in mind about WP_CRON is that it’s not a “real” cron and is only triggered when someone visits the site. To that end, you could also do the check when the product page loads and hide the button as needed.