Filters the content of the Text widget.
$text, $instance, $this
Sortie :
@param string $text The widget content. @param array $instance Array of settings for the current widget. @param WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance.
// Modifier la valeur avec le filtre 'widget_text'
add_filter('widget_text', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($text) {
// Modifier la valeur
return $text;
}
Chargement des actualités...