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 |
|---|---|
| 257 | * |
| 258 | * @since 2.3.0 |
| 259 | * @since 4.4.0 Added the `$this` parameter. |
| 260 | * @since 4.8.1 The `$this` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object. |
| 261 | * |
| 262 | * @param string $text The widget content. |
| 263 | * @param array $instance Array of settings for the current widget. |
| 264 | * @param WP_Widget_Text|WP_Widget_Custom_HTML $this Current Text widget instance. |
| 265 | */ |
| 266 | $text = apply_filters( 'widget_text', $text, $instance, $this ); |
| 267 | |
| 268 | if ( $is_visual_text_widget ) { |
| 269 | |
| 270 | /** |
| 271 | * Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor. |
| 272 | * |
| 273 | * By default a subset of the_content filters are applied, including wpautop and wptexturize. |
| 274 | * |
| 275 | * @since 4.8.0 |