Filters the displayed columns in the terms list table.
Description
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
Parameters
$string
string- Custom column output. Default empty.
$column_name
string- Name of the column.
$term_id
int- Term ID.
Source
return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Suppose you have a custom taxonomy called “genre”, replace
{$this->screen->taxonomy}
with the name of the custom taxonomy i.e. “genre”The sample below is for adding the column title in the same taxonomy.