Render screen reader text.
(string) (Optional) The screen reader text array named key.
Default value: ''
(string) (Optional) The HTML tag to wrap the screen reader text. Default h2.
Default value: 'h2'
File: wp-admin/includes/class-wp-screen.php
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>"; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/render_screen_reader_content