bb_forum_pad

The BuddyPress bb forum pad function.

Description

bb_forum_pad( $pad, (int) $offset = 0 ); 

Parameters (2)

0. $pad
The pad.
1. $offset — Optional. (int)
The offset.

Usage

  1. if ( !function_exists( 'bb_forum_pad' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The pad. 
  5. $pad = null; 
  6.  
  7. // The offset. 
  8. $offset = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_forum_pad($pad, $offset); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_forum_pad( $pad, $offset = 0 ) { 
  2. global $bb_forums_loop; 
  3. if ( !is_object($bb_forums_loop) || !is_a($bb_forums_loop, 'BB_Loop') ) 
  4. return false; 
  5.  
  6. echo $bb_forums_loop->pad( $pad, $offset );