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.
Contents
Parameters
- $key
(string)(Required)Screen reader text array named key.
Return
(string) Screen reader text string.
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 ]; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |