bp_gifts_get_pagination_count

Return "Viewing x of y pages".

Description

bp_gifts_get_pagination_count(); 

Usage

  1. if ( !function_exists( 'bp_gifts_get_pagination_count' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-gifts-latest-2014/includes/bp-gifts-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_gifts_get_pagination_count(); 
  7.  

Defined (1)

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

/includes/bp-gifts-template.php  
  1. function bp_gifts_get_pagination_count() { 
  2. global $items_template; 
  3.  
  4. $pagination_count = sprintf( __( 'Viewing page %1$s of %2$s', 'bp-gifts' ), $items_template->query->query_vars['paged'], $items_template->query->max_num_pages ); 
  5.  
  6. return apply_filters( 'bp_gifts_get_pagination_count', $pagination_count );