WP_Screen::render_screen_reader_content( string $key = '', string $tag = 'h2' )

Renders screen reader text.


Parameters

$key string Optional
The screen reader text array named key.

Default: ''

$tag string Optional
The HTML tag to wrap the screen reader text. Default h2.

Default: 'h2'


Top ↑

Source

File: wp-admin/includes/class-wp-screen.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

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