Core Class
View Source on Trac ↗
Core Class
WP_Widget_Custom_HTML
class WP_Widget_Custom_HTML
// Constructor: function Object() { [native code] } Core class used to implement a Custom HTML widget.
Methods 9 methods
| Method / Return | Description |
|---|---|
| __construct() void | Sets up a new Custom HTML widget instance. |
| _register_one() void | Add hooks for enqueueing assets when registering all widget instances of this widget class.
Parameters: $number: mixed |
| _filter_gallery_shortcode_attrs() array | Filters gallery shortcode attributes.
Parameters: $attrs: mixed |
| widget() void | Outputs the content for the current Custom HTML widget instance.
Parameters: $args: mixed, $instance: mixed |
| update() array | Handles updating settings for the current Custom HTML widget instance.
Parameters: $new_instance: mixed, $old_instance: mixed |
| enqueue_admin_scripts() void | Loads the required scripts and styles for the widget control. |
| form() void | Outputs the Custom HTML widget settings form.
Parameters: $instance: mixed |
| render_control_template_scripts() void | Render form template scripts. |
| add_help_text() void | Add help text to widgets admin screen. |
Properties
| Property / Type | Description |
|---|---|
| $registered mixed public | No description available. |
| $default_instance mixed public | No description available. |
Class Information
Since Version
4.8.1
Source File
wp-includes/widgets/class-wp-widget-custom-html.php
Advertisement