WP_Screen::get_screen_reader_text │ public │ WP 4.4.0

Gets a screen reader text string.

Метод класса: WP_Screen{}

Хуков нет.

Возвращает

?string. Screen reader text string, or null if no text is associated with the key.

Использование

$WP_Screen = new WP_Screen();
$WP_Screen->get_screen_reader_text( $key );
$key(строка) (обязательный)
Screen reader text array named key.

Список изменений

С версии 4.4.0 Введена.

Код WP_Screen::get_screen_reader_text() WP 7.1.2

public function get_screen_reader_text( $key ) {
	if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
		return null;
	}
	return $this->_screen_reader_content[ $key ];
}