WP_Screen::get_screen_reader_text() WordPress Method

The WP_Screen::get_screen_reader_text() method is used to get the text for the screen reader. This method is available since WordPress 4.4.0.

WP_Screen::get_screen_reader_text( string $key ) #

Get a screen reader text string.


Parameters

$key

(string)(Required)Screen reader text array named key.


Top ↑

Return

(string) Screen reader text string.


Top ↑

Source

File: wp-admin/includes/class-wp-screen.php

	public function get_screen_reader_text( $key ) {
		if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
			return null;
		}
		return $this->_screen_reader_content[ $key ];
	}

Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.