W3cubDocs

/WordPress

WP_MS_Themes_List_Table::column_default( WP_Theme $item, string $column_name )

Handles default column output.

Parameters

$itemWP_Themerequired
The current WP_Theme object.
$column_namestringrequired
The current column name.

Source

public function column_default( $item, $column_name ) {
	// Restores the more descriptive, specific name for use within this method.
	$theme = $item;

	$stylesheet = $theme->get_stylesheet();

	/**
	 * Fires inside each custom column of the Multisite themes list table.
	 *
	 * @since 3.1.0
	 *
	 * @param string   $column_name Name of the column.
	 * @param string   $stylesheet  Directory name of the theme.
	 * @param WP_Theme $theme       Current WP_Theme object.
	 */
	do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme );
}

Hooks

do_action( ‘manage_themes_custom_column’, string $column_name, string $stylesheet, WP_Theme $theme )

Fires inside each custom column of the Multisite themes list table.

Changelog

Version Description
5.9.0 Renamed $theme to $item to match parent class for PHP 8 named parameter support.
4.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/column_default