WP HOOKS
filtrdynamicznyod 2.8.0

manage_{$this->screen->taxonomy}_custom_column

Args 3Plik wp-admin/includes/class-wp-terms-list-table.php

Opis — z kodu źródłowego

Filters the displayed columns in the terms list table.

The dynamic portion of the hook name, $this->screen->taxonomy, refers to the slug of the current taxonomy. Possible hook names include:

  • manage_category_custom_column
  • manage_post_tag_custom_column

Hook dynamiczny — możliwe nazwy

manage_category_custom_columnmanage_post_tag_custom_column

Parametry

ParametrTypOpis
$stringstringCustom column output. Default empty.
$column_namestringName of the column.
$term_idintTerm ID.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_{$this->screen->taxonomy}_custom_column', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii