WP HOOKS
filtrod 5.2.0

category_list_link_attributes

Args 5Plik wp-includes/class-walker-category.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the HTML attributes applied to a category list item's anchor element.

Parametry

ParametrTypOpis
$attsarray{ The HTML attributes applied to the list item's <code>&lt;a&gt;</code> element, empty strings are ignored. @type string $href The href attribute. @type string $title The title attribute. }
$category\WP_TermTerm data object.
$depthintDepth of category, used for padding.
$argsarrayAn array of arguments.
$current_object_idintID of the current category.

Wywołanie

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

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

Popularne w tej kategorii