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

In this article

Adds accessible hidden headings and text for the screen.

Parameters

$contentarrayoptional
An associative array of screen reader text strings.
  • 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’.

Default:array()

Source

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

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.