apply_filters( 'widget_block_content', string $content, array $instance, WP_Widget_Block $widget )
Filters the content of the Block widget before output.
Parameters
- $content
-
(string) The widget content.
- $instance
-
(array) Array of settings for the current widget.
- $widget
-
(WP_Widget_Block) Current Block widget instance.
Source
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_block_content