WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Media_List_Table::column_default() public WP 4.3.0

Handles output for the default column.

Это метод класса: WP_Media_List_Table{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$WP_Media_List_Table = new WP_Media_List_Table();
$WP_Media_List_Table->column_default( $post, $column_name );
$post(WP_Post) (обязательный)
The current WP_Post object.
$column_name(строка) (обязательный)
Current column name.

Список изменений

С версии 4.3.0 Введена.

Код WP Media List Table::column default: wp-admin/includes/class-wp-media-list-table.php WP 5.5.1

<?php
public function column_default( $post, $column_name ) {
	if ( 'categories' === $column_name ) {
		$taxonomy = 'category';
	} elseif ( 'tags' === $column_name ) {
		$taxonomy = 'post_tag';
	} elseif ( 0 === strpos( $column_name, 'taxonomy-' ) ) {
		$taxonomy = substr( $column_name, 9 );
	} else {
		$taxonomy = false;
	}

	if ( $taxonomy ) {
		$terms = get_the_terms( $post->ID, $taxonomy );
		if ( is_array( $terms ) ) {
			$out = array();
			foreach ( $terms as $t ) {
				$posts_in_term_qv             = array();
				$posts_in_term_qv['taxonomy'] = $taxonomy;
				$posts_in_term_qv['term']     = $t->slug;

				$out[] = sprintf(
					'<a href="%s">%s</a>',
					esc_url( add_query_arg( $posts_in_term_qv, 'upload.php' ) ),
					esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) )
				);
			}
			/* translators: Used between list items, there is a space after the comma. */
			echo join( __( ', ' ), $out );
		} else {
			echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no_terms . '</span>';
		}

		return;
	}

	/**
	 * Fires for each custom column in the Media list table.
	 *
	 * Custom columns are registered using the {@see 'manage_media_columns'} filter.
	 *
	 * @since 2.5.0
	 *
	 * @param string $column_name Name of the custom column.
	 * @param int    $post_id     Attachment ID.
	 */
	do_action( 'manage_media_custom_column', $column_name, $post->ID );
}