WP HOOKS
filtrod 2.3.0

wp_generate_tag_cloud

Args 3Plik wp-includes/category-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the generated output of a tag cloud.

The filter is only evaluated if a true value is passed to the $filter argument in wp_generate_tag_cloud().

Parametry

ParametrTypOpis
$returnstring[] | stringString containing the generated HTML tag cloud output or an array of tag links if the 'format' argument equals 'array'.
$tags\WP_Term[]An array of terms used in the tag cloud.
$argsarrayAn array of wp_generate_tag_cloud() arguments.

Wywołanie

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

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

Popularne w tej kategorii