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


Top ↑

Return Return

(int) $bbp->tab_index The global tab index


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 bbPress (r5561)
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.