Renders screen reader text.
Parameters
$key
stringoptional- The screen reader text array named key.
Default:
''
$tag
stringoptional- The HTML tag to wrap the screen reader text. Default h2.
Default:
'h2'
Source
public function render_screen_reader_content( $key = '', $tag = 'h2' ) { if ( ! isset( $this->_screen_reader_content[ $key ] ) ) { return; } echo "<$tag class='screen-reader-text'>" . $this->_screen_reader_content[ $key ] . "</$tag>"; }
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.