pum_popup_content_tabindex_attr( $popup_id = null )

Render the popup’s content tabindex attribute to make focusable if needed.


Description Description


Source Source

File: includes/functions/popups/template.php

function pum_popup_content_tabindex_attr( $popup_id = null ) {
	$popup = pum_get_popup( $popup_id );

	if ( ! pum_is_popup( $popup ) ) {
		return;
	}

	// Greater or equal to 0 makes it focusable.
	echo 'tabindex="0"';
}


Top ↑

User Contributed Notes User Contributed Notes

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