Created
February 21, 2017 19:40
-
-
Save meloniq/7f26331335d1e01d97f8d7e2746af66d to your computer and use it in GitHub Desktop.
[ClassiPress] Change quantity of featured ads displayed in slider
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 | |
/** | |
* Change quantity of featured ads displayed in slider. | |
* | |
* @param array $args | |
* | |
* @return array | |
*/ | |
function childtheme_gimme_more_featured_ads( $args ) { | |
// default value is 15 | |
$args['posts_per_page'] = 23; | |
return $args; | |
} | |
add_filter( 'cp_featured_slider_args', 'childtheme_gimme_more_featured_ads', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment