Created
January 13, 2016 22:59
-
-
Save mikemcalister/f2a7a2b9427fdaf10015 to your computer and use it in GitHub Desktop.
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
/* | |
* Change the type Infinite Scroll setting from scroll to click | |
*/ | |
function theme_infinite_scroll_settings( $args ) { | |
if ( is_array( $args ) ) | |
$args['type'] = 'click'; | |
return $args; | |
} | |
add_filter( 'infinite_scroll_settings', 'theme_infinite_scroll_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment