bbp_tab_index_attribute( mixed $tab = false )

Output a “tabindex” attribute for an element, if an index was passed.


Description Description

This helper function is in use, but it is generally considered impolite to override the "tabindex" attribute beyond what the browser naturally assigns.

Most internal usages pass false which results in no attribute being used.


Parameters Parameters

$tab

(Optional) False to skip, any integer to use

Default value: false


Top ↑

Source Source

File: includes/common/template.php

function bbp_tab_index_attribute( $tab = false ) {
	echo bbp_get_tab_index_attribute( $tab );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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