shopp_paged_link

filters the pagination url for a product collection/category.

add_filter( 'shopp_paged_link', [callback] )

@param string $url the pagination url for a product collection/category.

Description

filters the pagination url for a product collection/category.

Example

// register filter callback
add_filter('shopp_paged_link', 'shopp_paged_link_fltr');

// create filter function
function shopp_paged_link_fltr( $url ) {
    // process the url in some way such as
    // add a query var and escape the url
    return esc_url( add_query_arg(array('myvar'=>'value'), $url) );
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar