Forked from rynaldos-zz/disable-jp-inf-scroll-cond.php
Last active
April 7, 2016 11:44
-
-
Save jeffikus/b73ea70380ad6c29aed8241c726bb5d5 to your computer and use it in GitHub Desktop.
Disable Jetpack's Infinite Scroll for WooCommerce
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
function _rsp_disable_jetpack_infinite_scroll_conditionally() { | |
if ( true === is_woocommerce() ) { | |
remove_theme_support( 'infinite-scroll' ); | |
} | |
} | |
add_action( 'template_redirect', '_rsp_disable_jetpack_infinite_scroll_conditionally', 9 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment