WP_Widget_Block
- Since
- 5.8.0
- Source
wp-includes/widgets/class-wp-widget-block.php:17
Core class used to implement a Block widget.
Compatibility
- WordPress
- since 5.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 2
Every hook that fires from inside WP_Widget_Block, in the order it appears in the class, grouped by the method that fires it.
Properties · 1
$default_instancearrayprotected- Default instance.
Methods · 6
- __construct()Sets up a new Block widget instance.
- widget()Outputs the content for the current Block widget instance.
- get_dynamic_classname()Calculates the classname to use in the block widget's container HTML.
- update()Handles updating settings for the current Block widget instance.
- form()Outputs the Block widget settings form.
- set_is_wide_widget_in_customizer()Makes sure no block widget is considered to be wide.
Changelog
Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/widgets/class-wp-widget-block.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.