WP HOOKS
filtrdynamicznyod 3.5.0

manage_taxonomies_for_{$post_type}_columns

Args 2Plik wp-admin/includes/class-wp-posts-list-table.php

Opis — z kodu źródłowego

Filters the taxonomy columns in the Posts list table.

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

  • manage_taxonomies_for_post_columns
  • manage_taxonomies_for_page_columns

Hook dynamiczny — możliwe nazwy

manage_taxonomies_for_page_columnsmanage_taxonomies_for_post_columns

Parametry

ParametrTypOpis
$taxonomiesstring[]Array of taxonomy names to show columns for.
$post_typestringThe post type.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_taxonomies_for_{$post_type}_columns', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii