WordPress at a glance
function is not described

WP_Widget_Media_Gallery::__construct() public WP 4.9.0

Constructor.

{} It's a method of the class: WP_Widget_Media_Gallery{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 4.9.0 Introduced.

Code of WP_Widget_Media_Gallery::__construct() WP 5.7.2

<?php
public function __construct() {
	parent::__construct(
		'media_gallery',
		__( 'Gallery' ),
		array(
			'description' => __( 'Displays an image gallery.' ),
			'mime_type'   => 'image',
		)
	);

	$this->l10n = array_merge(
		$this->l10n,
		array(
			'no_media_selected' => __( 'No images selected' ),
			'add_media'         => _x( 'Add Images', 'label for button in the gallery widget; should not be longer than ~13 characters long' ),
			'replace_media'     => '',
			'edit_media'        => _x( 'Edit Gallery', 'label for button in the gallery widget; should not be longer than ~13 characters long' ),
		)
	);
}