| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Widget API: WP_Widget_Media_Gallery class
| File Size: | 261 lines (8 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
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. |
| get_instance_schema() X-Ref |
| Get schema for properties of a widget instance (item). return: array Schema for properties. |
| render_media( $instance ) X-Ref |
| Render the media on the frontend. param: array $instance Widget instance props. |
| enqueue_admin_scripts() X-Ref |
| Loads the required media files for the media manager and scripts for media widgets. |
| render_control_template_scripts() X-Ref |
| Render form template scripts. |
| has_content( $instance ) X-Ref |
| Whether the widget has content to show. return: bool Whether widget has content. param: array $instance Widget instance props. |
| Generated : Thu Oct 23 08:20:05 2025 | Cross-referenced by PHPXref |