evolve_loop_shop_per_page

The evolve evolve loop shop per page function.

Description

evolve_loop_shop_per_page(); 

Usage

  1. if ( !function_exists( 'evolve_loop_shop_per_page' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolve_loop_shop_per_page(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_loop_shop_per_page() { 
  2.  
  3. $woo_items = evolve_get_option('evl_woo_items', '12'); 
  4.  
  5. if (isset($_SERVER['QUERY_STRING'])) { 
  6. parse_str($_SERVER['QUERY_STRING'], $params); 
  7.  
  8. if ($woo_items) { 
  9. $per_page = $woo_items; 
  10. } else { 
  11. $per_page = 12; 
  12.  
  13. $pc = !empty($params['product_count']) ? $params['product_count'] : $per_page; 
  14.  
  15. return $pc;