Last active
July 9, 2021 13:13
-
-
Save stuartduff/b596961f3b71f55a008af35fe1dd8188 to your computer and use it in GitHub Desktop.
Increase Storefront recent products homepage to 14
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 increase_sf_recent_products( $args ) { | |
// Sets the maximum products to 14 | |
$args['limit'] = 14; | |
// Output | |
return $args; | |
} | |
function remove_powerpack_filter() { | |
add_filter( 'storefront_recent_products_args', 'increase_sf_recent_products' ); | |
} | |
add_action( 'init', 'remove_powerpack_filter' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment