alt_class

The BuddyPress alt class function.

Description

alt_class( $key, (string) $others = '' ); 

Parameters (2)

0. $key
The key.
1. $others — Optional. (string) => ''
The others.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function alt_class( $key, $others = '' ) { 
  2. echo get_alt_class( $key, $others );