On this page
apply_filters( 'widget_block_content', string $content, array $instance, WP_Widget_Block $widget )
Filters the content of the Block widget before output.
Parameters
$contentstring-
The widget content.
$instancearray-
Array of settings for the current widget.
$widgetWP_Widget_Block-
Current Block widget instance.
Source
File: wp-includes/widgets/class-wp-widget-block.php. View all references
echo apply_filters(
'widget_block_content',
$instance['content'],
$instance,
$this
);
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget_Block::widget() wp-includes/widgets/class-wp-widget-block.php | Outputs the content for the current Block widget instance. |
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_block_content