WP HOOKS
filtrod 2.5.0

term_name

Args 2Plik wp-admin/includes/class-wp-terms-list-table.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters display of the term name in the terms list table.

The default output may include padding due to the term's current level in the term hierarchy.

Parametry

ParametrTypOpis
$pad_tag_namestringThe term name, padded if not top-level.
$tag\WP_TermTerm object.

Wywołanie

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

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

Popularne w tej kategorii