On this page
WP_Screen::set_screen_reader_content( array $content = array() )
Adds accessible hidden headings and text for the screen.
Parameters
$contentarray Optional-
An associative array of screen reader text strings.
heading_viewsstringScreen reader text for the filter links heading.
Default 'Filter items list'.heading_paginationstringScreen reader text for the pagination heading.
Default 'Items list navigation'.heading_liststringScreen reader text for the items list heading.
Default 'Items list'.
Default:
array()
Source
File: wp-admin/includes/class-wp-screen.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
| wp_parse_args() wp-includes/functions.php | Merges user defined arguments into defaults array. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/set_screen_reader_content