filtrod 4.8.0
widget_text_content
Opis — z kodu źródłowego
Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor.
By default a subset of the_content filters are applied, including wpautop and wptexturize.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$text | string | The widget content. |
$instance | array | Array of settings for the current widget. |
$widget | \WP_Widget_Text | Current Text widget instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_text_content', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_text_content', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii