WP HOOKS
filtrdynamicznyod 2.5.0

term_links-{$taxonomy}

Args 1Plik wp-includes/category-template.php

Opis — z kodu źródłowego

Filters the term links for a given taxonomy.

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. Possible hook names include:

  • term_links-category
  • term_links-post_tag
  • term_links-post_format

Hook dynamiczny — możliwe nazwy

term_links-categoryterm_links-post_formatterm_links-post_tag

Parametry

ParametrTypOpis
$linksstring[]An array of term links.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'term_links-{$taxonomy}', 'twoja_funkcja' );

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

Popularne w tej kategorii