Composite Product - How to Remove/Customize pagination in the components

If you wanto to remove / customize pagination in the components you should add this code in functions.php of your theme:

 

add_filter( 'ywcp_post_per_page_items_number' , 'ywcp_change_post_per_page_items_number' ) ;


function ywcp_change_post_per_page_items_number( $product_per_page ) {

$product_per_page = -1; // in this way show all

// $product_per_page = 6; // Six per page

return $product_per_page ;

}
Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk