WP HOOKS
filtrod 2.3.0

widget_text

Args 3Plik wp-includes/widgets/class-wp-widget-text.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the content of the Text widget.

Parametry

ParametrTypOpis
$textstringThe widget content.
$instancearrayArray of settings for the current widget.
$widget\WP_Widget_Text | \WP_Widget_Custom_HTMLCurrent text or HTML widget instance.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_text', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii