WP HOOKS
filtrod 1.2.0

the_category

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

Opis — z kodu źródłowego

Filters the category or list of categories.

Parametry

ParametrTypOpis
$theliststringList of categories for the current post.
$separatorstringSeparator used between the categories.
$parentsstringHow to display the category parents. Accepts 'multiple', 'single', or empty.

Wywołanie

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

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

Popularne w tej kategorii