Created
January 13, 2016 22:48
-
-
Save mikemcalister/4caf1026f2e4d25687e0 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 posts_per_page Infinite Scroll setting from 10 to 20 | |
*/ | |
function theme_infinite_scroll_settings( $args ) { | |
if ( is_array( $args ) ) | |
$args['posts_per_page'] = 20; | |
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