WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 |
|