WP HOOKS
filtrdynamicznyod 4.4.0

get_{$adjacent}_post_excluded_terms

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

Opis — z kodu źródłowego

Filters the IDs of terms excluded from adjacent post queries.

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'. Possible hook names include:

  • get_next_post_excluded_terms
  • get_previous_post_excluded_terms

Hook dynamiczny — możliwe nazwy

get_next_post_excluded_termsget_previous_post_excluded_terms

Parametry

ParametrTypOpis
$excluded_termsint[] | stringArray of excluded term IDs. Empty string if none were provided.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_{$adjacent}_post_excluded_terms', 'twoja_funkcja' );

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

Popularne w tej kategorii