theme_row_meta хук-фильтрWP 3.1.0

Filters the array of row meta for each theme in the Multisite themes list table.

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

add_filter( 'theme_row_meta', 'wp_kama_theme_row_meta_filter', 10, 4 );

/**
 * Function for `theme_row_meta` filter-hook.
 * 
 * @param string[] $theme_meta An array of the theme's metadata, including the version, author, and theme URI.
 * @param string   $stylesheet Directory name of the theme.
 * @param WP_Theme $theme      WP_Theme object.
 * @param string   $status     Status of the theme.
 *
 * @return string[]
 */
function wp_kama_theme_row_meta_filter( $theme_meta, $stylesheet, $theme, $status ){

	// filter...
	return $theme_meta;
}
$theme_meta(string[])
An array of the theme's metadata, including the version, author, and theme URI.
$stylesheet(строка)
Directory name of the theme.
$theme(WP_Theme)
WP_Theme object.
$status(строка)
Status of the theme.

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

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

Где вызывается хук

WP_MS_Themes_List_Table::column_description()
theme_row_meta
wp-admin/includes/class-wp-ms-themes-list-table.php 754
$theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status );

Где используется хук в WordPress

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