WordPress at Your Fingertips
function is not described

WP_Screen::set_screen_reader_content() public WP 4.4.0

Add accessible hidden headings and text for the screen.

{} It's a method of the class: WP_Screen{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Screen = new WP_Screen();
$WP_Screen->set_screen_reader_content( $content );
$content(array)

An associative array of screen reader text strings.

Default: array()

  • heading_views(string)
    Screen reader text for the filter links heading.
    Default: 'Filter items list'

  • heading_pagination(string)
    Screen reader text for the pagination heading.
    Default: 'Items list navigation'

  • heading_list(string)
    Screen reader text for the items list heading.
    Default: 'Items list'

Changelog

Since 4.4.0 Introduced.

Code of WP_Screen::set_screen_reader_content() WP 5.8.2

public function set_screen_reader_content( $content = array() ) {
	$defaults = array(
		'heading_views'      => __( 'Filter items list' ),
		'heading_pagination' => __( 'Items list navigation' ),
		'heading_list'       => __( 'Items list' ),
	);
	$content  = wp_parse_args( $content, $defaults );

	$this->_screen_reader_content = $content;
}