WP HOOKS
filtrod 2.6.0

get_archives_link

Args 7Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the archive link content.

Parametry

ParametrTypOpis
$link_htmlstringThe archive HTML link content.
$urlstringURL to archive.
$textstringArchive text description.
$formatstringLink format. Can be 'link', 'option', 'html', or custom.
$beforestringContent to prepend to the description.
$afterstringContent to append to the description.
$selectedboolTrue if the current page is the selected archive.

Wywołanie

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

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

Popularne w tej kategorii