shopp_recently_viewed_limit

filters the limit of recently viewed products to track for a visitor on the Storefront

add_filter( 'shopp_recently_viewed_limit', [callback] )

@param int $limit the limit of recently viewed products to track for a visitor on the Storefront

Description

filters the limit of recently viewed products to track for a visitor on the Storefront

This defaults to 25.

Example

// register filter callback
add_filter('shopp_recently_viewed_limit', 'shopp_recently_viewed_limit_fltr');

// create filter function
function shopp_recently_viewed_limit_fltr( $limit ) {
    // limit recently viewed list to 20 products
    return $limit - 5;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar