Home / APIs / WP_Widget_Media_Gallery::__construct() – Constructor.

You appear to be a bot. Output may be restricted

Description

Constructor.

Usage

WP_Widget_Media_Gallery::__construct();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/widgets/class-wp-widget-media-gallery.php
Lines: 1 to 13 of 13

  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' ),
    ) );
  }
 

 View on GitHub View on Trac

Published: 16th November 2017 | Last updated: 16th November 2017

Information

Function name: WP_Widget_Media_Gallery::__construct
Class ref: WP_Widget_Media_Gallery
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-includes/widgets/class-wp-widget-media-gallery.php
File ref: wp-includes/widgets/class-wp-widget-media-gallery.php
Deprecated?: No
API Letters: G,M,W

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
oik-plugins Easy Digital Downloads a2z
Easy Digital Downloads a2z

Site:  edd.wp-a2z.org
© Copyright oik-plugins 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins