Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Increase Storefront recent products homepage to 14
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