WP_Screen::get_screen_reader_text
Gets a screen reader text string.
Method of the class: WP_Screen{}
No Hooks.
Returns
?String. Screen reader text string, or null if no text is associated with the key.
Usage
$WP_Screen = new WP_Screen(); $WP_Screen->get_screen_reader_text( $key );
- $key(string) (required)
- Screen reader text array named key.
Changelog
| Since 4.4.0 | Introduced. |
WP_Screen::get_screen_reader_text() WP Screen::get screen reader text code WP 7.0
public function get_screen_reader_text( $key ) {
if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
return null;
}
return $this->_screen_reader_content[ $key ];
}