Created
October 24, 2016 20:14
-
-
Save elimn/8fd157765d5aea751e66526183b8c8c7 to your computer and use it in GitHub Desktop.
MT | ECP | Set the events per page on photo view
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
<?php | |
/** | |
* Set the events per page on photo view. | |
*/ | |
function tribe_photo_posts_per_page( $value, $name, $default ){ | |
if ( 'postsPerPage' === $name && tribe_is_photo() ) { | |
$value = '30'; | |
} | |
return $value; | |
} | |
add_filter( 'tribe_get_option', 'tribe_photo_posts_per_page', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment