WP_Screen::render_screen_reader_content() – Render screen reader text.

You appear to be a bot. Output may be restricted

Description

Render screen reader text.

Usage

WP_Screen::render_screen_reader_content( $key, $tag );

Parameters

$key
( string ) optional – The screen reader text array named key.
$tag
( string ) optional default: h2 – Optional. The HTML tag to wrap the screen reader text. Default h2.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-screen.php
Lines:

1 to 7 of 7
  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>";
  }
 

 View on GitHub View on Trac