[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/widgets/ -> class-wp-widget-media-gallery.php (summary)

Widget API: WP_Widget_Media_Gallery class

File Size: 260 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Widget_Media_Gallery:: (6 methods):
  __construct()
  get_instance_schema()
  render_media()
  enqueue_admin_scripts()
  render_control_template_scripts()
  has_content()


Class: WP_Widget_Media_Gallery  - X-Ref

Core class that implements a gallery widget.

__construct()   X-Ref
Constructor.

since: 4.9.0

get_instance_schema()   X-Ref
Get schema for properties of a widget instance (item).

return: array Schema for properties.
since: 4.9.0

render_media( $instance )   X-Ref
Render the media on the frontend.

param: array $instance Widget instance props.
since: 4.9.0

enqueue_admin_scripts()   X-Ref
Loads the required media files for the media manager and scripts for media widgets.

since: 4.9.0

render_control_template_scripts()   X-Ref
Render form template scripts.

since: 4.9.0

has_content( $instance )   X-Ref
Whether the widget has content to show.

param: array $instance Widget instance props.
return: bool Whether widget has content.
since: 4.9.0



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1