Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_block_content

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
68           /**
69            * Filters the content of the Block widget before output.
70            *
71            * @since 5.8.0
72            *
73            * @param string          $content  The widget content.
74            * @param array           $instance Array of settings for the current widget.
75            * @param WP_Widget_Block $widget   Current Block widget instance.
76            */
77           echo apply_filters(
78                'widget_block_content',
79                $instance['content'],
80                $instance,
81                $this
82           );
83
84           echo $args['after_widget'];
85      }
86