Warning: This function has been deprecated. bbPress (r5561) instead.
bbp_get_tab_index( int $auto_increment = true )
Return the current tab index of a given form
Description 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 Parameters
- $auto_increment
-
(Optional) Set to false to prevent the increment
Default value: true
Return Return
(int) $bbp->tab_index The global tab index
Source Source
File: includes/common/template.php
function bbp_get_tab_index( $auto_increment = true ) { $bbp = bbpress(); if ( true === $auto_increment ) { ++$bbp->tab_index; } // Filter & return return apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | bbPress (r5561) |
2.0.0 | Introduced. |