WP_Screen::set_screen_reader_content( array $content = array() )

Adds accessible hidden headings and text for the screen.


Parameters

$content

(Optional) An associative array of screen reader text strings.<br>

  • 'heading_views'
    (string) Screen reader text for the filter links heading.<br> Default 'Filter items list'.<br>
  • 'heading_pagination'
    (string) Screen reader text for the pagination heading.<br> Default 'Items list navigation'.<br>
  • 'heading_list'
    (string) Screen reader text for the items list heading.<br> Default 'Items list'.<br>

Default value: array()


Source

File: wp-admin/includes/class-wp-screen.php

	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;
	}

Changelog

Changelog
Version Description
4.4.0 Introduced.