bbp_get_tab_index( int $auto_increment = true )
Output the current tab index of a given form
Description
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
- $auto_increment
-
(int) (Optional) Set to false to prevent the increment
Default value: true
Return
(int) $bbp->tab_index The global tab index
Source
File: bp-forums/common/template.php
function bbp_get_tab_index( $auto_increment = true ) { $bbp = bbpress(); if ( true === $auto_increment ) ++$bbp->tab_index; return apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index ); }
Changelog
Version | Description |
---|---|
bbPress (r2810) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.