[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Widget API: WP_Widget_Media_Audio class
File Size: | 205 lines (6 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Widget_Media_Audio:: (6 methods):
__construct()
get_instance_schema()
render_media()
enqueue_preview_scripts()
enqueue_admin_scripts()
render_control_template_scripts()
Class: WP_Widget_Media_Audio - X-Ref
Core class that implements an audio widget.__construct() X-Ref |
Constructor. since: 4.8.0 |
get_instance_schema() X-Ref |
Get schema for properties of a widget instance (item). since: 4.8.0 return: array Schema for properties. |
render_media( $instance ) X-Ref |
Render the media on the frontend. since: 4.8.0 param: array $instance Widget instance props. |
enqueue_preview_scripts() X-Ref |
Enqueue preview scripts. These scripts normally are enqueued just-in-time when an audio shortcode is used. In the customizer, however, widgets can be dynamically added and rendered via selective refresh, and so it is important to unconditionally enqueue them in case a widget does get added. since: 4.8.0 |
enqueue_admin_scripts() X-Ref |
Loads the required media files for the media manager and scripts for media widgets. since: 4.8.0 |
render_control_template_scripts() X-Ref |
Render form template scripts. since: 4.8.0 |
Generated: Tue Nov 12 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |