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

WP_Customize_Media_Control::get_default_button_labels() public WP 4.9.0

Get default button labels.

Provides an array of the default button labels based on the mime type of the current control.

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

Хуков нет.

Возвращает

Строку[]. An associative array of default button labels keyed by the button name.

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

$WP_Customize_Media_Control = new WP_Customize_Media_Control();
$WP_Customize_Media_Control->get_default_button_labels();

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

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

Код WP_Customize_Media_Control::get_default_button_labels() WP 5.5.1

wp-includes/customize/class-wp-customize-media-control.php
<?php
public function get_default_button_labels() {
	// Get just the mime type and strip the mime subtype if present.
	$mime_type = ! empty( $this->mime_type ) ? strtok( ltrim( $this->mime_type, '/' ), '/' ) : 'default';

	switch ( $mime_type ) {
		case 'video':
			return array(
				'select'       => __( 'Select video' ),
				'change'       => __( 'Change video' ),
				'default'      => __( 'Default' ),
				'remove'       => __( 'Remove' ),
				'placeholder'  => __( 'No video selected' ),
				'frame_title'  => __( 'Select video' ),
				'frame_button' => __( 'Choose video' ),
			);
		case 'audio':
			return array(
				'select'       => __( 'Select audio' ),
				'change'       => __( 'Change audio' ),
				'default'      => __( 'Default' ),
				'remove'       => __( 'Remove' ),
				'placeholder'  => __( 'No audio selected' ),
				'frame_title'  => __( 'Select audio' ),
				'frame_button' => __( 'Choose audio' ),
			);
		case 'image':
			return array(
				'select'       => __( 'Select image' ),
				'site_icon'    => __( 'Select site icon' ),
				'change'       => __( 'Change image' ),
				'default'      => __( 'Default' ),
				'remove'       => __( 'Remove' ),
				'placeholder'  => __( 'No image selected' ),
				'frame_title'  => __( 'Select image' ),
				'frame_button' => __( 'Choose image' ),
			);
		default:
			return array(
				'select'       => __( 'Select file' ),
				'change'       => __( 'Change file' ),
				'default'      => __( 'Default' ),
				'remove'       => __( 'Remove' ),
				'placeholder'  => __( 'No file selected' ),
				'frame_title'  => __( 'Select file' ),
				'frame_button' => __( 'Choose file' ),
			);
	} // End switch().
}