bbp_tab_index

Output the current tab index of a given form.

Description

bbp_tab_index( (bool) $auto_increment = true ); 

Use this function to handle the tab indexing of user facing forms within a template file. Calling this function will automatically increment the global tab index by default.

Parameters (1)

0. $auto_increment — Optional. (bool) => true
Default true. Set to false to prevent increment

Usage

  1. if ( !function_exists( 'bbp_tab_index' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/template.php'; 
  3.  
  4. // Optional. Default true. Set to false to prevent 
  5. // increment 
  6. $auto_increment = true; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bbp_tab_index($auto_increment); 
  10.  

Defined (1)

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

/includes/common/template.php  
  1. function bbp_tab_index( $auto_increment = true ) { 
  2. echo bbp_get_tab_index( $auto_increment );