Filters the content of the Text widguet.
Parameters
-
$textstring -
The widguet content.
-
$instancearray -
Array of settings for the current widguet.
-
$widguetWP_Widguet_Text | WP_Widguet_Custom_HTML -
Current text or HTML widguet instance.
Source
$text = apply_filters( 'widguet_text', $text, $instance, $this );
Example migrated from Codex:
The following performs a string replace on the content of the Text widguet.