Filter hook 'manage_{$this->screen->taxonomy}_custom_column'

in WP Core File wp-admin/includes/class-wp-terms-list-table.php at line 669

View Source

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

Filter Hook
Description
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 Information

File Location wp-admin/includes/class-wp-terms-list-table.php View on GitHub
Hook Type Filter
Line Number 669

Hook Parameters

Type Name Description
string $string Custom column output. Default empty.
string $column_name Name of the column.
int $term_id Term ID.

Usage Examples

Basic Usage
<?php
// Hook into manage_{$this->screen->taxonomy}_custom_column
add_filter('manage_{$this->screen->taxonomy}_custom_column', 'my_custom_filter', 10, 3);

function my_custom_filter($string, $column_name, $term_id) {
    // Your custom filtering logic here
    return $string;
}

Source Code Context

wp-admin/includes/class-wp-terms-list-table.php:669 - How this hook is used in WordPress core
<?php
 664  		 *
 665  		 * @param string $string      Custom column output. Default empty.
 666  		 * @param string $column_name Name of the column.
 667  		 * @param int    $term_id     Term ID.
 668  		 */
 669  		return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id );
 670  	}
 671  
 672  	/**
 673  	 * Outputs the hidden row displayed when inline editing
 674  	 *

PHP Documentation

<?php
/**
		 * 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`
		 *
		 * @since 2.8.0
		 *
		 * @param string $string      Custom column output. Default empty.
		 * @param string $column_name Name of the column.
		 * @param int    $term_id     Term ID.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-terms-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.