manage_(screen_taxonomy)_custom_column
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:
Usage
add_filter( 'manage_(screen_taxonomy)_custom_column', 'wp_kama_manage_screen_taxonomy_custom_column_filter', 10, 3 ); /** * Function for `manage_(screen_taxonomy)_custom_column` filter-hook. * * @param string $string Custom column output. * @param string $column_name Name of the column. * @param int $term_id Term ID. * * @return string */ function wp_kama_manage_screen_taxonomy_custom_column_filter( $string, $column_name, $term_id ){ // filter... return $string; }
- $string(string)
- Custom column output.
Default: '' - $column_name(string)
- Name of the column.
- $term_id(int)
- Term ID.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
wp-admin/includes/class-wp-terms-list-table.php 669
return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id );