WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Widget_Media_Audio::__construct() public WP 4.8.0

Constructor.

Это метод класса: WP_Widget_Media_Audio{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_Widget_Media_Audio = new WP_Widget_Media_Audio();
$WP_Widget_Media_Audio->__construct();

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

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

Код WP_Widget_Media_Audio::__construct() WP 5.5.1

wp-includes/widgets/class-wp-widget-media-audio.php
<?php
public function __construct() {
	parent::__construct(
		'media_audio',
		__( 'Audio' ),
		array(
			'description' => __( 'Displays an audio player.' ),
			'mime_type'   => 'audio',
		)
	);

	$this->l10n = array_merge(
		$this->l10n,
		array(
			'no_media_selected'          => __( 'No audio selected' ),
			'add_media'                  => _x( 'Add Audio', 'label for button in the audio widget' ),
			'replace_media'              => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
			'edit_media'                 => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
			'missing_attachment'         => sprintf(
				/* translators: %s: URL to media library. */
				__( 'We can&#8217;t find that audio file. Check your <a href="%s">media library</a> and make sure it wasn&#8217;t deleted.' ),
				esc_url( admin_url( 'upload.php' ) )
			),
			/* translators: %d: Widget count. */
			'media_library_state_multi'  => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ),
			'media_library_state_single' => __( 'Audio Widget' ),
			'unsupported_file_type'      => __( 'Looks like this isn&#8217;t the correct kind of file. Please link to an audio file instead.' ),
		)
	);
}