bp_get_messages_pagination

  • apply_filters( 'bp_get_messages_pagination', $messages_template->pag_links )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 332
      	function bp_get_total_unread_messages_count() {
      		return apply_filters( 'bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count() );
      	}
      
      function bp_messages_pagination() {
      	echo bp_get_messages_pagination();
      }
      	function bp_get_messages_pagination() {
      		global $messages_template;
      		return apply_filters( 'bp_get_messages_pagination', $messages_template->pag_links );
      	}
      
      function bp_messages_pagination_count() {
      	global $messages_template;
      
      	$start_num = intval( ( $messages_template->pag_page - 1 ) * $messages_template->pag_num ) + 1;
      	$from_num = bp_core_number_format( $start_num );
      	$to_num = bp_core_number_format( ( $start_num + ( $messages_template->pag_num - 1 ) > $messages_template->total_thread_count ) ? $messages_template->total_thread_count : $start_num + ( $messages_template->pag_num - 1 ) );
      	$total = bp_core_number_format( $messages_template->total_thread_count );
      

Comments are closed.