Core Class
View Source on Trac ↗
Core Class
WP_Widget_Block
class WP_Widget_Block
// Constructor: function Object() { [native code] } Core class used to implement a Block widget.
Methods 6 methods
| Method / Return | Description |
|---|---|
| __construct() void | Sets up a new Block widget instance. |
| widget() void | Outputs the content for the current Block widget instance.
Parameters: $args: mixed, $instance: mixed |
| get_dynamic_classname() string | Calculates the classname to use in the block widget's container HTML.
Parameters: $content: mixed |
| update() array | Handles updating settings for the current Block widget instance.
Parameters: $new_instance: mixed, $old_instance: mixed |
| form() void | Outputs the Block widget settings form.
Parameters: $instance: mixed |
| set_is_wide_widget_in_customizer() bool | Makes sure no block widget is considered to be wide.
Parameters: $is_wide: mixed, $widget_id: mixed |
Properties
| Property / Type | Description |
|---|---|
| $default_instance mixed public | No description available. |
Class Information
Since Version
5.8.0
Source File
wp-includes/widgets/class-wp-widget-block.php
Advertisement