WP HOOKS
filtrod 2.3.0

get_tags

Args 2Plik wp-includes/category.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the array of term objects returned for the 'post_tag' taxonomy.

Parametry

ParametrTypOpis
$tags\WP_Term[] | int | \WP_ErrorArray of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
$argsarrayAn array of arguments. See {@see \get_terms()}.

Wywołanie

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

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

Popularne w tej kategorii