filtrod 2.6.0
get_archives_link
Opis — z kodu źródłowego
Filters the archive link content.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$link_html | string | The archive HTML link content. |
$url | string | URL to archive. |
$text | string | Archive text description. |
$format | string | Link format. Can be 'link', 'option', 'html', or custom. |
$before | string | Content to prepend to the description. |
$after | string | Content to append to the description. |
$selected | bool | True 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
}
// 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