WP HOOKS
filtrod 4.4.0

the_category_list

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

Opis — z kodu źródłowego

Filters the categories before building the category list.

Parametry

ParametrTypOpis
$categories\WP_Term[]An array of the post's categories.
$post_idint | falseID of the post to retrieve categories for. When <code>false</code>, defaults to the current post in the loop.

Wywołanie

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

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

Popularne w tej kategorii